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(None, |
165 E5MessageBox.critical( |
|
166 None, |
166 self.trUtf8("Start Debugger"), |
167 self.trUtf8("Start Debugger"), |
167 self.trUtf8( |
168 self.trUtf8( |
168 """<p>The debugger backend could not be""" |
169 """<p>The debugger backend could not be""" |
169 """ started.</p>""")) |
170 """ started.</p>""")) |
170 |
171 |
206 [interpreter, os.path.abspath(debugClient), |
207 [interpreter, os.path.abspath(debugClient), |
207 str(port), '0', ipaddr] |
208 str(port), '0', ipaddr] |
208 args[0] = Utilities.getExecutablePath(args[0]) |
209 args[0] = Utilities.getExecutablePath(args[0]) |
209 process = self.__startProcess(args[0], args[1:], clientEnv) |
210 process = self.__startProcess(args[0], args[1:], clientEnv) |
210 if process is None: |
211 if process is None: |
211 E5MessageBox.critical(None, |
212 E5MessageBox.critical( |
|
213 None, |
212 self.trUtf8("Start Debugger"), |
214 self.trUtf8("Start Debugger"), |
213 self.trUtf8( |
215 self.trUtf8( |
214 """<p>The debugger backend could not be""" |
216 """<p>The debugger backend could not be""" |
215 """ started.</p>""")) |
217 """ started.</p>""")) |
216 return process, self.__isNetworked |
218 return process, self.__isNetworked |
217 |
219 |
218 process = self.__startProcess(interpreter, |
220 process = self.__startProcess(interpreter, |
219 [debugClient, str(port), redirect, ipaddr], |
221 [debugClient, str(port), redirect, ipaddr], |
220 clientEnv) |
222 clientEnv) |
221 if process is None: |
223 if process is None: |
222 E5MessageBox.critical(None, |
224 E5MessageBox.critical( |
|
225 None, |
223 self.trUtf8("Start Debugger"), |
226 self.trUtf8("Start Debugger"), |
224 self.trUtf8( |
227 self.trUtf8( |
225 """<p>The debugger backend could not be started.</p>""")) |
228 """<p>The debugger backend could not be started.</p>""")) |
226 return process, self.__isNetworked |
229 return process, self.__isNetworked |
227 |
230 |
256 [rhost, interpreter, os.path.abspath(debugClient), |
259 [rhost, interpreter, os.path.abspath(debugClient), |
257 str(port), redirect, ipaddr] |
260 str(port), redirect, ipaddr] |
258 args[0] = Utilities.getExecutablePath(args[0]) |
261 args[0] = Utilities.getExecutablePath(args[0]) |
259 process = self.__startProcess(args[0], args[1:]) |
262 process = self.__startProcess(args[0], args[1:]) |
260 if process is None: |
263 if process is None: |
261 E5MessageBox.critical(None, |
264 E5MessageBox.critical( |
|
265 None, |
262 self.trUtf8("Start Debugger"), |
266 self.trUtf8("Start Debugger"), |
263 self.trUtf8( |
267 self.trUtf8( |
264 """<p>The debugger backend could not be""" |
268 """<p>The debugger backend could not be""" |
265 """ started.</p>""")) |
269 """ started.</p>""")) |
266 # set translation function |
270 # set translation function |
302 [interpreter, os.path.abspath(debugClient), |
306 [interpreter, os.path.abspath(debugClient), |
303 str(port), '0', ipaddr] |
307 str(port), '0', ipaddr] |
304 args[0] = Utilities.getExecutablePath(args[0]) |
308 args[0] = Utilities.getExecutablePath(args[0]) |
305 process = self.__startProcess(args[0], args[1:], clientEnv) |
309 process = self.__startProcess(args[0], args[1:], clientEnv) |
306 if process is None: |
310 if process is None: |
307 E5MessageBox.critical(None, |
311 E5MessageBox.critical( |
|
312 None, |
308 self.trUtf8("Start Debugger"), |
313 self.trUtf8("Start Debugger"), |
309 self.trUtf8( |
314 self.trUtf8( |
310 """<p>The debugger backend could not be""" |
315 """<p>The debugger backend could not be""" |
311 """ started.</p>""")) |
316 """ started.</p>""")) |
312 return process, self.__isNetworked |
317 return process, self.__isNetworked |
313 |
318 |
314 process = self.__startProcess(interpreter, |
319 process = self.__startProcess(interpreter, |
315 [debugClient, str(port), redirect, ipaddr], |
320 [debugClient, str(port), redirect, ipaddr], |
316 clientEnv) |
321 clientEnv) |
317 if process is None: |
322 if process is None: |
318 E5MessageBox.critical(None, |
323 E5MessageBox.critical( |
|
324 None, |
319 self.trUtf8("Start Debugger"), |
325 self.trUtf8("Start Debugger"), |
320 self.trUtf8( |
326 self.trUtf8( |
321 """<p>The debugger backend could not be started.</p>""")) |
327 """<p>The debugger backend could not be started.</p>""")) |
322 return process, self.__isNetworked |
328 return process, self.__isNetworked |
323 |
329 |