src/eric7/Debugger/DebugServer.py

branch
eric7
changeset 10321
4a017fdf316f
parent 10311
0a141f9ae677
child 10335
cc0a21ae0975
--- a/src/eric7/Debugger/DebugServer.py	Fri Nov 17 17:53:14 2023 +0100
+++ b/src/eric7/Debugger/DebugServer.py	Sat Nov 18 15:18:17 2023 +0100
@@ -1002,6 +1002,7 @@
         enableMultiprocess=False,
         multiprocessNoDebug="",
         configOverride=None,
+        reportAllExceptions=False,
     ):
         """
         Public method to load a new program to debug.
@@ -1044,6 +1045,9 @@
         @param configOverride dictionary containing the global config override
             data
         @type dict
+        @param reportAllExceptions flag indicating to report all exceptions
+            instead of unhandled exceptions only
+        @type bool
         """
         self.__autoClearShell = autoClearShell
         self.__multiprocessNoDebugList = [
@@ -1090,6 +1094,7 @@
             tracePython,
             autoContinue,
             enableMultiprocess=enableMultiprocess,
+            reportAllExceptions=reportAllExceptions,
         )
         self.debugging = True
         self.running = True
@@ -2049,13 +2054,13 @@
             debuggerId,
         )
 
-    def passiveStartUp(self, fn, exc, debuggerId):
+    def passiveStartUp(self, fn, reportAllExceptions, debuggerId):
         """
         Public method to handle a passive debug connection.
 
         @param fn filename of the debugged script
         @type str
-        @param exc flag to enable exception reporting of the IDE
+        @param reportAllExceptions flag to enable reporting of all exceptions
         @type bool
         @param debuggerId ID of the debugger backend
         @type str
@@ -2066,7 +2071,7 @@
         self.running = True
         self.__restoreBreakpoints(debuggerId)
         self.__restoreWatchpoints(debuggerId)
-        self.passiveDebugStarted.emit(fn, exc)
+        self.passiveDebugStarted.emit(fn, reportAllExceptions)
 
     def __passiveShutDown(self):
         """

eric ide

mercurial