Debugger/DebuggerInterfacePython3.py

changeset 3032
927a2f8b3669
parent 3021
801289962f4e
child 3060
5883ce99ee12
child 3160
209a07d7e401
equal deleted inserted replaced
3031:ed2eaa573ca5 3032:927a2f8b3669
183 rhost = Preferences.getDebugger("RemoteHost") 183 rhost = Preferences.getDebugger("RemoteHost")
184 if rhost == "": 184 if rhost == "":
185 rhost = "localhost" 185 rhost = "localhost"
186 if rexec: 186 if rexec:
187 args = Utilities.parseOptionString(rexec) + \ 187 args = Utilities.parseOptionString(rexec) + \
188 [rhost, interpreter, os.path.abspath(debugClient), 188 [rhost, interpreter, os.path.abspath(debugClient),
189 noencoding, str(port), redirect, ipaddr] 189 noencoding, str(port), redirect, ipaddr]
190 args[0] = Utilities.getExecutablePath(args[0]) 190 args[0] = Utilities.getExecutablePath(args[0])
191 process = self.__startProcess(args[0], args[1:]) 191 process = self.__startProcess(args[0], args[1:])
192 if process is None: 192 if process is None:
193 E5MessageBox.critical( 193 E5MessageBox.critical(
230 ipaddr = self.debugServer.getHostAddress(True) 230 ipaddr = self.debugServer.getHostAddress(True)
231 if runInConsole or Preferences.getDebugger("ConsoleDbgEnabled"): 231 if runInConsole or Preferences.getDebugger("ConsoleDbgEnabled"):
232 ccmd = Preferences.getDebugger("ConsoleDbgCommand") 232 ccmd = Preferences.getDebugger("ConsoleDbgCommand")
233 if ccmd: 233 if ccmd:
234 args = Utilities.parseOptionString(ccmd) + \ 234 args = Utilities.parseOptionString(ccmd) + \
235 [interpreter, os.path.abspath(debugClient), 235 [interpreter, os.path.abspath(debugClient),
236 noencoding, str(port), '0', ipaddr] 236 noencoding, str(port), '0', ipaddr]
237 args[0] = Utilities.getExecutablePath(args[0]) 237 args[0] = Utilities.getExecutablePath(args[0])
238 process = self.__startProcess(args[0], args[1:], clientEnv) 238 process = self.__startProcess(args[0], args[1:], clientEnv)
239 if process is None: 239 if process is None:
240 E5MessageBox.critical( 240 E5MessageBox.critical(
285 rhost = project.getDebugProperty("REMOTEHOST") 285 rhost = project.getDebugProperty("REMOTEHOST")
286 if rhost == "": 286 if rhost == "":
287 rhost = "localhost" 287 rhost = "localhost"
288 if rexec: 288 if rexec:
289 args = Utilities.parseOptionString(rexec) + \ 289 args = Utilities.parseOptionString(rexec) + \
290 [rhost, interpreter, os.path.abspath(debugClient), 290 [rhost, interpreter, os.path.abspath(debugClient),
291 noencoding, str(port), redirect, ipaddr] 291 noencoding, str(port), redirect, ipaddr]
292 args[0] = Utilities.getExecutablePath(args[0]) 292 args[0] = Utilities.getExecutablePath(args[0])
293 process = self.__startProcess(args[0], args[1:]) 293 process = self.__startProcess(args[0], args[1:])
294 if process is None: 294 if process is None:
295 E5MessageBox.critical( 295 E5MessageBox.critical(
329 pass 329 pass
330 330
331 ipaddr = self.debugServer.getHostAddress(True) 331 ipaddr = self.debugServer.getHostAddress(True)
332 if runInConsole or project.getDebugProperty("CONSOLEDEBUGGER"): 332 if runInConsole or project.getDebugProperty("CONSOLEDEBUGGER"):
333 ccmd = project.getDebugProperty("CONSOLECOMMAND") or \ 333 ccmd = project.getDebugProperty("CONSOLECOMMAND") or \
334 Preferences.getDebugger("ConsoleDbgCommand") 334 Preferences.getDebugger("ConsoleDbgCommand")
335 if ccmd: 335 if ccmd:
336 args = Utilities.parseOptionString(ccmd) + \ 336 args = Utilities.parseOptionString(ccmd) + \
337 [interpreter, os.path.abspath(debugClient), 337 [interpreter, os.path.abspath(debugClient),
338 noencoding, str(port), '0', ipaddr] 338 noencoding, str(port), '0', ipaddr]
339 args[0] = Utilities.getExecutablePath(args[0]) 339 args[0] = Utilities.getExecutablePath(args[0])
340 process = self.__startProcess(args[0], args[1:], clientEnv) 340 process = self.__startProcess(args[0], args[1:], clientEnv)
341 if process is None: 341 if process is None:
342 E5MessageBox.critical( 342 E5MessageBox.critical(

eric ide

mercurial