Debugger/DebuggerInterfacePython3.py

branch
Py2 comp.
changeset 3060
5883ce99ee12
parent 3058
0a02c433f52d
parent 3032
927a2f8b3669
child 3065
070b35dde35e
equal deleted inserted replaced
3058:0a02c433f52d 3060:5883ce99ee12
186 rhost = Preferences.getDebugger("RemoteHost") 186 rhost = Preferences.getDebugger("RemoteHost")
187 if rhost == "": 187 if rhost == "":
188 rhost = "localhost" 188 rhost = "localhost"
189 if rexec: 189 if rexec:
190 args = Utilities.parseOptionString(rexec) + \ 190 args = Utilities.parseOptionString(rexec) + \
191 [rhost, interpreter, os.path.abspath(debugClient), 191 [rhost, interpreter, os.path.abspath(debugClient),
192 noencoding, str(port), redirect, ipaddr] 192 noencoding, str(port), redirect, ipaddr]
193 args[0] = Utilities.getExecutablePath(args[0]) 193 args[0] = Utilities.getExecutablePath(args[0])
194 process = self.__startProcess(args[0], args[1:]) 194 process = self.__startProcess(args[0], args[1:])
195 if process is None: 195 if process is None:
196 E5MessageBox.critical( 196 E5MessageBox.critical(
233 ipaddr = self.debugServer.getHostAddress(True) 233 ipaddr = self.debugServer.getHostAddress(True)
234 if runInConsole or Preferences.getDebugger("ConsoleDbgEnabled"): 234 if runInConsole or Preferences.getDebugger("ConsoleDbgEnabled"):
235 ccmd = Preferences.getDebugger("ConsoleDbgCommand") 235 ccmd = Preferences.getDebugger("ConsoleDbgCommand")
236 if ccmd: 236 if ccmd:
237 args = Utilities.parseOptionString(ccmd) + \ 237 args = Utilities.parseOptionString(ccmd) + \
238 [interpreter, os.path.abspath(debugClient), 238 [interpreter, os.path.abspath(debugClient),
239 noencoding, str(port), '0', ipaddr] 239 noencoding, str(port), '0', ipaddr]
240 args[0] = Utilities.getExecutablePath(args[0]) 240 args[0] = Utilities.getExecutablePath(args[0])
241 process = self.__startProcess(args[0], args[1:], clientEnv) 241 process = self.__startProcess(args[0], args[1:], clientEnv)
242 if process is None: 242 if process is None:
243 E5MessageBox.critical( 243 E5MessageBox.critical(
288 rhost = project.getDebugProperty("REMOTEHOST") 288 rhost = project.getDebugProperty("REMOTEHOST")
289 if rhost == "": 289 if rhost == "":
290 rhost = "localhost" 290 rhost = "localhost"
291 if rexec: 291 if rexec:
292 args = Utilities.parseOptionString(rexec) + \ 292 args = Utilities.parseOptionString(rexec) + \
293 [rhost, interpreter, os.path.abspath(debugClient), 293 [rhost, interpreter, os.path.abspath(debugClient),
294 noencoding, str(port), redirect, ipaddr] 294 noencoding, str(port), redirect, ipaddr]
295 args[0] = Utilities.getExecutablePath(args[0]) 295 args[0] = Utilities.getExecutablePath(args[0])
296 process = self.__startProcess(args[0], args[1:]) 296 process = self.__startProcess(args[0], args[1:])
297 if process is None: 297 if process is None:
298 E5MessageBox.critical( 298 E5MessageBox.critical(
332 pass 332 pass
333 333
334 ipaddr = self.debugServer.getHostAddress(True) 334 ipaddr = self.debugServer.getHostAddress(True)
335 if runInConsole or project.getDebugProperty("CONSOLEDEBUGGER"): 335 if runInConsole or project.getDebugProperty("CONSOLEDEBUGGER"):
336 ccmd = project.getDebugProperty("CONSOLECOMMAND") or \ 336 ccmd = project.getDebugProperty("CONSOLECOMMAND") or \
337 Preferences.getDebugger("ConsoleDbgCommand") 337 Preferences.getDebugger("ConsoleDbgCommand")
338 if ccmd: 338 if ccmd:
339 args = Utilities.parseOptionString(ccmd) + \ 339 args = Utilities.parseOptionString(ccmd) + \
340 [interpreter, os.path.abspath(debugClient), 340 [interpreter, os.path.abspath(debugClient),
341 noencoding, str(port), '0', ipaddr] 341 noencoding, str(port), '0', ipaddr]
342 args[0] = Utilities.getExecutablePath(args[0]) 342 args[0] = Utilities.getExecutablePath(args[0])
343 process = self.__startProcess(args[0], args[1:], clientEnv) 343 process = self.__startProcess(args[0], args[1:], clientEnv)
344 if process is None: 344 if process is None:
345 E5MessageBox.critical( 345 E5MessageBox.critical(

eric ide

mercurial