Debugger/DebuggerInterfacePython3.py

changeset 3020
542e97d4ecb3
parent 2988
f53c03574697
child 3021
801289962f4e
equal deleted inserted replaced
3019:7912530a33e2 3020:542e97d4ecb3
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(None, 193 E5MessageBox.critical(
194 None,
194 self.trUtf8("Start Debugger"), 195 self.trUtf8("Start Debugger"),
195 self.trUtf8( 196 self.trUtf8(
196 """<p>The debugger backend could not be""" 197 """<p>The debugger backend could not be"""
197 """ started.</p>""")) 198 """ started.</p>"""))
198 199
234 [interpreter, os.path.abspath(debugClient), 235 [interpreter, os.path.abspath(debugClient),
235 noencoding, str(port), '0', ipaddr] 236 noencoding, str(port), '0', ipaddr]
236 args[0] = Utilities.getExecutablePath(args[0]) 237 args[0] = Utilities.getExecutablePath(args[0])
237 process = self.__startProcess(args[0], args[1:], clientEnv) 238 process = self.__startProcess(args[0], args[1:], clientEnv)
238 if process is None: 239 if process is None:
239 E5MessageBox.critical(None, 240 E5MessageBox.critical(
241 None,
240 self.trUtf8("Start Debugger"), 242 self.trUtf8("Start Debugger"),
241 self.trUtf8( 243 self.trUtf8(
242 """<p>The debugger backend could not be""" 244 """<p>The debugger backend could not be"""
243 """ started.</p>""")) 245 """ started.</p>"""))
244 return process, self.__isNetworked 246 return process, self.__isNetworked
245 247
246 process = self.__startProcess(interpreter, 248 process = self.__startProcess(interpreter,
247 [debugClient, noencoding, str(port), redirect, ipaddr], 249 [debugClient, noencoding, str(port), redirect, ipaddr],
248 clientEnv) 250 clientEnv)
249 if process is None: 251 if process is None:
250 E5MessageBox.critical(None, 252 E5MessageBox.critical(
253 None,
251 self.trUtf8("Start Debugger"), 254 self.trUtf8("Start Debugger"),
252 self.trUtf8( 255 self.trUtf8(
253 """<p>The debugger backend could not be started.</p>""")) 256 """<p>The debugger backend could not be started.</p>"""))
254 return process, self.__isNetworked 257 return process, self.__isNetworked
255 258
286 [rhost, interpreter, os.path.abspath(debugClient), 289 [rhost, interpreter, os.path.abspath(debugClient),
287 noencoding, str(port), redirect, ipaddr] 290 noencoding, str(port), redirect, ipaddr]
288 args[0] = Utilities.getExecutablePath(args[0]) 291 args[0] = Utilities.getExecutablePath(args[0])
289 process = self.__startProcess(args[0], args[1:]) 292 process = self.__startProcess(args[0], args[1:])
290 if process is None: 293 if process is None:
291 E5MessageBox.critical(None, 294 E5MessageBox.critical(
295 None,
292 self.trUtf8("Start Debugger"), 296 self.trUtf8("Start Debugger"),
293 self.trUtf8( 297 self.trUtf8(
294 """<p>The debugger backend could not be""" 298 """<p>The debugger backend could not be"""
295 """ started.</p>""")) 299 """ started.</p>"""))
296 # set translation function 300 # set translation function
332 [interpreter, os.path.abspath(debugClient), 336 [interpreter, os.path.abspath(debugClient),
333 noencoding, str(port), '0', ipaddr] 337 noencoding, str(port), '0', ipaddr]
334 args[0] = Utilities.getExecutablePath(args[0]) 338 args[0] = Utilities.getExecutablePath(args[0])
335 process = self.__startProcess(args[0], args[1:], clientEnv) 339 process = self.__startProcess(args[0], args[1:], clientEnv)
336 if process is None: 340 if process is None:
337 E5MessageBox.critical(None, 341 E5MessageBox.critical(
342 None,
338 self.trUtf8("Start Debugger"), 343 self.trUtf8("Start Debugger"),
339 self.trUtf8( 344 self.trUtf8(
340 """<p>The debugger backend could not be""" 345 """<p>The debugger backend could not be"""
341 """ started.</p>""")) 346 """ started.</p>"""))
342 return process, self.__isNetworked 347 return process, self.__isNetworked
343 348
344 process = self.__startProcess(interpreter, 349 process = self.__startProcess(interpreter,
345 [debugClient, noencoding, str(port), redirect, ipaddr], 350 [debugClient, noencoding, str(port), redirect, ipaddr],
346 clientEnv) 351 clientEnv)
347 if process is None: 352 if process is None:
348 E5MessageBox.critical(None, 353 E5MessageBox.critical(
354 None,
349 self.trUtf8("Start Debugger"), 355 self.trUtf8("Start Debugger"),
350 self.trUtf8( 356 self.trUtf8(
351 """<p>The debugger backend could not be started.</p>""")) 357 """<p>The debugger backend could not be started.</p>"""))
352 return process, self.__isNetworked 358 return process, self.__isNetworked
353 359

eric ide

mercurial