src/eric7/DebugClients/Python/DebugClientBase.py

branch
eric7
changeset 10289
490388ca210c
parent 10065
de4ae767b0e3
child 10321
4a017fdf316f
diff -r 1f5c7f54c3cc -r 490388ca210c src/eric7/DebugClients/Python/DebugClientBase.py
--- a/src/eric7/DebugClients/Python/DebugClientBase.py	Mon Nov 06 19:12:33 2023 +0100
+++ b/src/eric7/DebugClients/Python/DebugClientBase.py	Tue Nov 07 11:03:13 2023 +0100
@@ -199,6 +199,8 @@
 
         self.startOptions = None
 
+        self.callTraceOptimization = False
+
     def getCoding(self):
         """
         Public method to return the current coding.
@@ -1841,6 +1843,7 @@
         redirect=True,
         passive=True,
         multiprocessSupport=False,
+        callTraceOptimization=False,
         codeStr="",
         scriptModule="",
     ):
@@ -1848,21 +1851,28 @@
         Public method used to start the remote debugger.
 
         @param progargs commandline for the program to be debugged
-            (list of strings)
-        @param wd working directory for the program execution (string)
-        @param host hostname of the debug server (string)
-        @param port portnumber of the debug server (int)
+        @type list of str
+        @param wd working directory for the program execution
+        @type str
+        @param host hostname of the debug server
+        @type str
+        @param port portnumber of the debug server
+        @type int
         @param exceptions flag to enable exception reporting of the IDE
-            (boolean)
+        @type bool
         @param tracePython flag to enable tracing into the Python library
-            (boolean)
+        @type bool
         @param redirect flag indicating redirection of stdin, stdout and
-            stderr (boolean)
+            stderr
+        @type bool
         @param passive flag indicating a passive debugging session
         @type bool
         @param multiprocessSupport flag indicating to enable multiprocess
             debugging support
         @type bool
+        @param callTraceOptimization flag indicating to speed up function/method
+            call tracing
+        @type bool
         @param codeStr string containing Python code to execute
         @type str
         @param scriptModule name of a module to be executed as a script
@@ -1904,6 +1914,7 @@
             self.__setCoding(self.running)
         self.debugging = True
         self.multiprocessSupport = multiprocessSupport
+        self.callTraceOptimization = callTraceOptimization
 
         self.passive = passive
         if passive:
@@ -1997,6 +2008,7 @@
             redirect = True
             passive = True
             multiprocess = False
+            callTraceOptimization = False
             codeStr = ""
             scriptModule = ""
             while args[0]:
@@ -2030,6 +2042,9 @@
                 elif args[0] == "--multiprocess":
                     multiprocess = True
                     del args[0]
+                elif args[0] == "--call-trace-optimization":
+                    callTraceOptimization = True
+                    del args[0]
                 elif args[0] in ("-c", "--code"):
                     codeStr = args[1]
                     del args[0]
@@ -2073,6 +2088,7 @@
                     redirect=redirect,
                     passive=passive,
                     multiprocessSupport=multiprocess,
+                    callTraceOptimization=callTraceOptimization,
                     codeStr=codeStr,
                     scriptModule=scriptModule,
                 )
@@ -2086,6 +2102,10 @@
                 self.multiprocessSupport = True
                 del sys.argv[1]
 
+            if sys.argv[1] == "--call-trace-optimization":
+                self.callTraceOptimization = True
+                del sys.argv[1]
+
             if sys.argv[1] == "":
                 del sys.argv[1]
 

eric ide

mercurial