Debugger/DebuggerInterfaceRuby.py

changeset 3032
927a2f8b3669
parent 3021
801289962f4e
child 3060
5883ce99ee12
child 3160
209a07d7e401
equal deleted inserted replaced
3031:ed2eaa573ca5 3032:927a2f8b3669
155 rhost = Preferences.getDebugger("RemoteHost") 155 rhost = Preferences.getDebugger("RemoteHost")
156 if rhost == "": 156 if rhost == "":
157 rhost = "localhost" 157 rhost = "localhost"
158 if rexec: 158 if rexec:
159 args = Utilities.parseOptionString(rexec) + \ 159 args = Utilities.parseOptionString(rexec) + \
160 [rhost, interpreter, os.path.abspath(debugClient), 160 [rhost, interpreter, os.path.abspath(debugClient),
161 str(port), redirect, ipaddr] 161 str(port), redirect, ipaddr]
162 args[0] = Utilities.getExecutablePath(args[0]) 162 args[0] = Utilities.getExecutablePath(args[0])
163 process = self.__startProcess(args[0], args[1:]) 163 process = self.__startProcess(args[0], args[1:])
164 if process is None: 164 if process is None:
165 E5MessageBox.critical( 165 E5MessageBox.critical(
202 ipaddr = self.debugServer.getHostAddress(True) 202 ipaddr = self.debugServer.getHostAddress(True)
203 if runInConsole or Preferences.getDebugger("ConsoleDbgEnabled"): 203 if runInConsole or Preferences.getDebugger("ConsoleDbgEnabled"):
204 ccmd = Preferences.getDebugger("ConsoleDbgCommand") 204 ccmd = Preferences.getDebugger("ConsoleDbgCommand")
205 if ccmd: 205 if ccmd:
206 args = Utilities.parseOptionString(ccmd) + \ 206 args = Utilities.parseOptionString(ccmd) + \
207 [interpreter, os.path.abspath(debugClient), 207 [interpreter, os.path.abspath(debugClient),
208 str(port), '0', ipaddr] 208 str(port), '0', ipaddr]
209 args[0] = Utilities.getExecutablePath(args[0]) 209 args[0] = Utilities.getExecutablePath(args[0])
210 process = self.__startProcess(args[0], args[1:], clientEnv) 210 process = self.__startProcess(args[0], args[1:], clientEnv)
211 if process is None: 211 if process is None:
212 E5MessageBox.critical( 212 E5MessageBox.critical(
255 rhost = project.getDebugProperty("REMOTEHOST") 255 rhost = project.getDebugProperty("REMOTEHOST")
256 if rhost == "": 256 if rhost == "":
257 rhost = "localhost" 257 rhost = "localhost"
258 if rexec: 258 if rexec:
259 args = Utilities.parseOptionString(rexec) + \ 259 args = Utilities.parseOptionString(rexec) + \
260 [rhost, interpreter, os.path.abspath(debugClient), 260 [rhost, interpreter, os.path.abspath(debugClient),
261 str(port), redirect, ipaddr] 261 str(port), redirect, ipaddr]
262 args[0] = Utilities.getExecutablePath(args[0]) 262 args[0] = Utilities.getExecutablePath(args[0])
263 process = self.__startProcess(args[0], args[1:]) 263 process = self.__startProcess(args[0], args[1:])
264 if process is None: 264 if process is None:
265 E5MessageBox.critical( 265 E5MessageBox.critical(
299 pass 299 pass
300 300
301 ipaddr = self.debugServer.getHostAddress(True) 301 ipaddr = self.debugServer.getHostAddress(True)
302 if runInConsole or project.getDebugProperty("CONSOLEDEBUGGER"): 302 if runInConsole or project.getDebugProperty("CONSOLEDEBUGGER"):
303 ccmd = project.getDebugProperty("CONSOLECOMMAND") or \ 303 ccmd = project.getDebugProperty("CONSOLECOMMAND") or \
304 Preferences.getDebugger("ConsoleDbgCommand") 304 Preferences.getDebugger("ConsoleDbgCommand")
305 if ccmd: 305 if ccmd:
306 args = Utilities.parseOptionString(ccmd) + \ 306 args = Utilities.parseOptionString(ccmd) + \
307 [interpreter, os.path.abspath(debugClient), 307 [interpreter, os.path.abspath(debugClient),
308 str(port), '0', ipaddr] 308 str(port), '0', ipaddr]
309 args[0] = Utilities.getExecutablePath(args[0]) 309 args[0] = Utilities.getExecutablePath(args[0])
310 process = self.__startProcess(args[0], args[1:], clientEnv) 310 process = self.__startProcess(args[0], args[1:], clientEnv)
311 if process is None: 311 if process is None:
312 E5MessageBox.critical( 312 E5MessageBox.critical(

eric ide

mercurial