Debugger/DebuggerInterfaceRuby.py

changeset 537
72b32daeb8d6
parent 482
4650a72c307a
child 564
b3d966393ba9
equal deleted inserted replaced
536:6d8d39753c82 537:72b32daeb8d6
8 """ 8 """
9 9
10 import os 10 import os
11 11
12 from PyQt4.QtCore import * 12 from PyQt4.QtCore import *
13 from PyQt4.QtGui import QMessageBox
14 13
15 from E5Gui.E5Application import e5App 14 from E5Gui.E5Application import e5App
15 from E5Gui import E5MessageBox
16 16
17 from .DebugProtocol import * 17 from .DebugProtocol import *
18 from . import DebugClientCapabilities 18 from . import DebugClientCapabilities
19 19
20 import Preferences 20 import Preferences
156 [rhost, interpreter, os.path.abspath(debugClient), 156 [rhost, interpreter, os.path.abspath(debugClient),
157 str(port), redirect, ipaddr] 157 str(port), redirect, ipaddr]
158 args[0] = Utilities.getExecutablePath(args[0]) 158 args[0] = Utilities.getExecutablePath(args[0])
159 process = self.__startProcess(args[0], args[1:]) 159 process = self.__startProcess(args[0], args[1:])
160 if process is None: 160 if process is None:
161 QMessageBox.critical(None, 161 E5MessageBox.critical(None,
162 self.trUtf8("Start Debugger"), 162 self.trUtf8("Start Debugger"),
163 self.trUtf8(\ 163 self.trUtf8(\
164 """<p>The debugger backend could not be started.</p>""")) 164 """<p>The debugger backend could not be started.</p>"""))
165 165
166 # set translation function 166 # set translation function
201 [interpreter, os.path.abspath(debugClient), 201 [interpreter, os.path.abspath(debugClient),
202 str(port), '0', ipaddr] 202 str(port), '0', ipaddr]
203 args[0] = Utilities.getExecutablePath(args[0]) 203 args[0] = Utilities.getExecutablePath(args[0])
204 process = self.__startProcess(args[0], args[1:], clientEnv) 204 process = self.__startProcess(args[0], args[1:], clientEnv)
205 if process is None: 205 if process is None:
206 QMessageBox.critical(None, 206 E5MessageBox.critical(None,
207 self.trUtf8("Start Debugger"), 207 self.trUtf8("Start Debugger"),
208 self.trUtf8(\ 208 self.trUtf8(\
209 """<p>The debugger backend could not be started.</p>""")) 209 """<p>The debugger backend could not be started.</p>"""))
210 return process, self.__isNetworked 210 return process, self.__isNetworked
211 211
212 process = self.__startProcess(interpreter, 212 process = self.__startProcess(interpreter,
213 [debugClient, str(port), redirect, ipaddr], 213 [debugClient, str(port), redirect, ipaddr],
214 clientEnv) 214 clientEnv)
215 if process is None: 215 if process is None:
216 QMessageBox.critical(None, 216 E5MessageBox.critical(None,
217 self.trUtf8("Start Debugger"), 217 self.trUtf8("Start Debugger"),
218 self.trUtf8("""<p>The debugger backend could not be started.</p>""")) 218 self.trUtf8("""<p>The debugger backend could not be started.</p>"""))
219 return process, self.__isNetworked 219 return process, self.__isNetworked
220 220
221 def startRemoteForProject(self, port, runInConsole): 221 def startRemoteForProject(self, port, runInConsole):
249 [rhost, interpreter, os.path.abspath(debugClient), 249 [rhost, interpreter, os.path.abspath(debugClient),
250 str(port), redirect, ipaddr] 250 str(port), redirect, ipaddr]
251 args[0] = Utilities.getExecutablePath(args[0]) 251 args[0] = Utilities.getExecutablePath(args[0])
252 process = self.__startProcess(args[0], args[1:]) 252 process = self.__startProcess(args[0], args[1:])
253 if process is None: 253 if process is None:
254 QMessageBox.critical(None, 254 E5MessageBox.critical(None,
255 self.trUtf8("Start Debugger"), 255 self.trUtf8("Start Debugger"),
256 self.trUtf8(\ 256 self.trUtf8(\
257 """<p>The debugger backend could not be started.</p>""")) 257 """<p>The debugger backend could not be started.</p>"""))
258 # set translation function 258 # set translation function
259 if project.getDebugProperty("PATHTRANSLATION"): 259 if project.getDebugProperty("PATHTRANSLATION"):
292 [interpreter, os.path.abspath(debugClient), 292 [interpreter, os.path.abspath(debugClient),
293 str(port), '0', ipaddr] 293 str(port), '0', ipaddr]
294 args[0] = Utilities.getExecutablePath(args[0]) 294 args[0] = Utilities.getExecutablePath(args[0])
295 process = self.__startProcess(args[0], args[1:], clientEnv) 295 process = self.__startProcess(args[0], args[1:], clientEnv)
296 if process is None: 296 if process is None:
297 QMessageBox.critical(None, 297 E5MessageBox.critical(None,
298 self.trUtf8("Start Debugger"), 298 self.trUtf8("Start Debugger"),
299 self.trUtf8(\ 299 self.trUtf8(\
300 """<p>The debugger backend could not be started.</p>""")) 300 """<p>The debugger backend could not be started.</p>"""))
301 return process, self.__isNetworked 301 return process, self.__isNetworked
302 302
303 process = self.__startProcess(interpreter, 303 process = self.__startProcess(interpreter,
304 [debugClient, str(port), redirect, ipaddr], 304 [debugClient, str(port), redirect, ipaddr],
305 clientEnv) 305 clientEnv)
306 if process is None: 306 if process is None:
307 QMessageBox.critical(None, 307 E5MessageBox.critical(None,
308 self.trUtf8("Start Debugger"), 308 self.trUtf8("Start Debugger"),
309 self.trUtf8("""<p>The debugger backend could not be started.</p>""")) 309 self.trUtf8("""<p>The debugger backend could not be started.</p>"""))
310 return process, self.__isNetworked 310 return process, self.__isNetworked
311 311
312 def getClientCapabilities(self): 312 def getClientCapabilities(self):

eric ide

mercurial