Debugger/DebuggerInterfaceRuby.py

changeset 3021
801289962f4e
parent 3020
542e97d4ecb3
child 3032
927a2f8b3669
child 3058
0a02c433f52d
equal deleted inserted replaced
3020:542e97d4ecb3 3021:801289962f4e
142 a network connection (boolean) 142 a network connection (boolean)
143 """ 143 """
144 interpreter = Preferences.getDebugger("RubyInterpreter") 144 interpreter = Preferences.getDebugger("RubyInterpreter")
145 if interpreter == "": 145 if interpreter == "":
146 interpreter = "/usr/bin/ruby" 146 interpreter = "/usr/bin/ruby"
147 debugClient = os.path.join(getConfig('ericDir'), 147 debugClient = os.path.join(
148 "DebugClients", "Ruby", "DebugClient.rb") 148 getConfig('ericDir'), "DebugClients", "Ruby", "DebugClient.rb")
149 149
150 redirect = str(Preferences.getDebugger("RubyRedirect")) 150 redirect = str(Preferences.getDebugger("RubyRedirect"))
151 151
152 if Preferences.getDebugger("RemoteDbgEnabled"): 152 if Preferences.getDebugger("RemoteDbgEnabled"):
153 ipaddr = self.debugServer.getHostAddress(False)[0] 153 ipaddr = self.debugServer.getHostAddress(False)[0]
215 self.trUtf8( 215 self.trUtf8(
216 """<p>The debugger backend could not be""" 216 """<p>The debugger backend could not be"""
217 """ started.</p>""")) 217 """ started.</p>"""))
218 return process, self.__isNetworked 218 return process, self.__isNetworked
219 219
220 process = self.__startProcess(interpreter, 220 process = self.__startProcess(
221 interpreter,
221 [debugClient, str(port), redirect, ipaddr], 222 [debugClient, str(port), redirect, ipaddr],
222 clientEnv) 223 clientEnv)
223 if process is None: 224 if process is None:
224 E5MessageBox.critical( 225 E5MessageBox.critical(
225 None, 226 None,
314 self.trUtf8( 315 self.trUtf8(
315 """<p>The debugger backend could not be""" 316 """<p>The debugger backend could not be"""
316 """ started.</p>""")) 317 """ started.</p>"""))
317 return process, self.__isNetworked 318 return process, self.__isNetworked
318 319
319 process = self.__startProcess(interpreter, 320 process = self.__startProcess(
321 interpreter,
320 [debugClient, str(port), redirect, ipaddr], 322 [debugClient, str(port), redirect, ipaddr],
321 clientEnv) 323 clientEnv)
322 if process is None: 324 if process is None:
323 E5MessageBox.critical( 325 E5MessageBox.critical(
324 None, 326 None,

eric ide

mercurial