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( |
166 None, |
166 None, |
167 self.trUtf8("Start Debugger"), |
167 self.tr("Start Debugger"), |
168 self.trUtf8( |
168 self.tr( |
169 """<p>The debugger backend could not be""" |
169 """<p>The debugger backend could not be""" |
170 """ started.</p>""")) |
170 """ started.</p>""")) |
171 |
171 |
172 # set translation function |
172 # set translation function |
173 if Preferences.getDebugger("PathTranslation"): |
173 if Preferences.getDebugger("PathTranslation"): |
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( |
213 None, |
213 None, |
214 self.trUtf8("Start Debugger"), |
214 self.tr("Start Debugger"), |
215 self.trUtf8( |
215 self.tr( |
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( |
220 process = self.__startProcess( |
222 [debugClient, str(port), redirect, ipaddr], |
222 [debugClient, str(port), redirect, ipaddr], |
223 clientEnv) |
223 clientEnv) |
224 if process is None: |
224 if process is None: |
225 E5MessageBox.critical( |
225 E5MessageBox.critical( |
226 None, |
226 None, |
227 self.trUtf8("Start Debugger"), |
227 self.tr("Start Debugger"), |
228 self.trUtf8( |
228 self.tr( |
229 """<p>The debugger backend could not be started.</p>""")) |
229 """<p>The debugger backend could not be started.</p>""")) |
230 return process, self.__isNetworked |
230 return process, self.__isNetworked |
231 |
231 |
232 def startRemoteForProject(self, port, runInConsole): |
232 def startRemoteForProject(self, port, runInConsole): |
233 """ |
233 """ |
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( |
266 None, |
266 None, |
267 self.trUtf8("Start Debugger"), |
267 self.tr("Start Debugger"), |
268 self.trUtf8( |
268 self.tr( |
269 """<p>The debugger backend could not be""" |
269 """<p>The debugger backend could not be""" |
270 """ started.</p>""")) |
270 """ started.</p>""")) |
271 # set translation function |
271 # set translation function |
272 if project.getDebugProperty("PATHTRANSLATION"): |
272 if project.getDebugProperty("PATHTRANSLATION"): |
273 self.translateRemote = \ |
273 self.translateRemote = \ |
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( |
313 None, |
313 None, |
314 self.trUtf8("Start Debugger"), |
314 self.tr("Start Debugger"), |
315 self.trUtf8( |
315 self.tr( |
316 """<p>The debugger backend could not be""" |
316 """<p>The debugger backend could not be""" |
317 """ started.</p>""")) |
317 """ started.</p>""")) |
318 return process, self.__isNetworked |
318 return process, self.__isNetworked |
319 |
319 |
320 process = self.__startProcess( |
320 process = self.__startProcess( |
322 [debugClient, str(port), redirect, ipaddr], |
322 [debugClient, str(port), redirect, ipaddr], |
323 clientEnv) |
323 clientEnv) |
324 if process is None: |
324 if process is None: |
325 E5MessageBox.critical( |
325 E5MessageBox.critical( |
326 None, |
326 None, |
327 self.trUtf8("Start Debugger"), |
327 self.tr("Start Debugger"), |
328 self.trUtf8( |
328 self.tr( |
329 """<p>The debugger backend could not be started.</p>""")) |
329 """<p>The debugger backend could not be started.</p>""")) |
330 return process, self.__isNetworked |
330 return process, self.__isNetworked |
331 |
331 |
332 def getClientCapabilities(self): |
332 def getClientCapabilities(self): |
333 """ |
333 """ |