275 self.translate = self.__remoteTranslation |
275 self.translate = self.__remoteTranslation |
276 self.translateLocalWindows = "\\" in self.translateLocal |
276 self.translateLocalWindows = "\\" in self.translateLocal |
277 else: |
277 else: |
278 self.translate = self.__identityTranslation |
278 self.translate = self.__identityTranslation |
279 return process, self.__isNetworked, "" |
279 return process, self.__isNetworked, "" |
|
280 else: |
|
281 EricMessageBox.critical( |
|
282 None, |
|
283 self.tr("Start Debugger"), |
|
284 self.tr( |
|
285 "<p>Remote debugging is configured but no command for remote" |
|
286 " login was given.</p>" |
|
287 ), |
|
288 ) |
|
289 return None, False, "" |
280 |
290 |
281 else: |
291 else: |
282 # local debugging code below |
292 # local debugging code below |
283 debugClient = self.__determineDebugClient() |
293 debugClient = self.__determineDebugClient() |
284 |
294 |
773 argv, |
783 argv, |
774 wd, |
784 wd, |
775 traceInterpreter=False, |
785 traceInterpreter=False, |
776 autoContinue=True, |
786 autoContinue=True, |
777 enableMultiprocess=False, |
787 enableMultiprocess=False, |
|
788 reportAllExceptions=False, |
778 ): |
789 ): |
779 """ |
790 """ |
780 Public method to load a new program to debug. |
791 Public method to load a new program to debug. |
781 |
792 |
782 @param fn the filename to debug |
793 @param fn the filename to debug |
791 @param autoContinue flag indicating, that the debugger should not |
802 @param autoContinue flag indicating, that the debugger should not |
792 stop at the first executable line |
803 stop at the first executable line |
793 @type bool |
804 @type bool |
794 @param enableMultiprocess flag indicating to perform multiprocess |
805 @param enableMultiprocess flag indicating to perform multiprocess |
795 debugging |
806 debugging |
|
807 @type bool |
|
808 @param reportAllExceptions flag indicating to report all exceptions |
|
809 instead of unhandled exceptions only |
796 @type bool |
810 @type bool |
797 """ |
811 """ |
798 self.__autoContinue = autoContinue |
812 self.__autoContinue = autoContinue |
799 self.__scriptName = os.path.abspath(fn) |
813 self.__scriptName = os.path.abspath(fn) |
800 self.__isStepCommand = False |
814 self.__isStepCommand = False |
807 "workdir": wd, |
821 "workdir": wd, |
808 "filename": fn, |
822 "filename": fn, |
809 "argv": Utilities.parseOptionString(argv), |
823 "argv": Utilities.parseOptionString(argv), |
810 "traceInterpreter": traceInterpreter, |
824 "traceInterpreter": traceInterpreter, |
811 "multiprocess": enableMultiprocess, |
825 "multiprocess": enableMultiprocess, |
|
826 "reportAllExceptions": reportAllExceptions, |
812 }, |
827 }, |
813 self.__mainDebugger, |
828 self.__mainDebugger, |
814 ) |
829 ) |
815 |
830 |
816 def remoteRun(self, fn, argv, wd): |
831 def remoteRun(self, fn, argv, wd): |
1602 self.debugServer.signalMainClientExit() |
1617 self.debugServer.signalMainClientExit() |
1603 |
1618 |
1604 elif method == "PassiveStartup": |
1619 elif method == "PassiveStartup": |
1605 self.debugServer.passiveStartUp( |
1620 self.debugServer.passiveStartUp( |
1606 self.translate(params["filename"], True), |
1621 self.translate(params["filename"], True), |
1607 params["exceptions"], |
1622 params["reportAllExceptions"], |
1608 params["debuggerId"], |
1623 params["debuggerId"], |
1609 ) |
1624 ) |
1610 |
1625 |
1611 elif method == "ResponseCompletion": |
1626 elif method == "ResponseCompletion": |
1612 self.debugServer.signalClientCompletionList( |
1627 self.debugServer.signalClientCompletionList( |