src/eric7/eric7_ide.py

branch
eric7
changeset 10541
b709f6cc205c
parent 10439
21c28b0f9e41
child 10542
e46910b0ce73
--- a/src/eric7/eric7_ide.py	Fri Feb 02 13:32:36 2024 +0100
+++ b/src/eric7/eric7_ide.py	Fri Feb 02 13:33:55 2024 +0100
@@ -329,7 +329,9 @@
 
     global app, args, mainWindow, splash, restartArgs, inMainLoop
 
-    sys.excepthook = excepthook
+    if sys.excepthook is sys.__excepthook__:
+        # we are not executed in the debugger - set our exception hook
+        sys.excepthook = excepthook
     if OSUtilities.isLinuxPlatform() or OSUtilities.isFreeBsdPlatform():
         multiprocessing.set_start_method("spawn")
 

eric ide

mercurial