src/eric7/Debugger/DebugUI.py

branch
eric7
changeset 10306
904f4c7da759
parent 10065
de4ae767b0e3
child 10321
4a017fdf316f
--- a/src/eric7/Debugger/DebugUI.py	Mon Nov 13 10:29:40 2023 +0100
+++ b/src/eric7/Debugger/DebugUI.py	Mon Nov 13 11:53:55 2023 +0100
@@ -1919,7 +1919,7 @@
         @param script name of a script (optional)
         @type str
         """
-        from .StartDialog import StartDialog
+        from .StartDialog import StartDialog, StartDialogMode
 
         self.__resetUI()
         doNotStart = False
@@ -1927,16 +1927,16 @@
         # Get the command line arguments, the working directory and the
         # exception reporting flag.
         cap = (
-            self.tr("Coverage of Project")
+            self.tr("Coverage Run of Project")
             if runProject
-            else self.tr("Coverage of Script")
+            else self.tr("Coverage Run of Script")
         )
         if runProject:
             scriptName = self.project.getMainScript(True)
             if not scriptName:
                 EricMessageBox.critical(
                     self.ui,
-                    self.tr("Coverage of Project"),
+                    self.tr("Coverage Run of Project"),
                     self.tr(
                         "There is no main script defined for the"
                         " current project. Aborting"
@@ -1958,7 +1958,7 @@
             self.exceptions,
             self.unhandledExceptions,
             self.ui,
-            2,
+            StartDialogMode.Coverage,
             autoClearShell=self.autoClearShell,
             configOverride=self.overrideGlobalConfig,
             forProject=runProject,
@@ -2123,7 +2123,7 @@
         @param script name of a script (optional)
         @type str
         """
-        from .StartDialog import StartDialog
+        from .StartDialog import StartDialog, StartDialogMode
 
         self.__resetUI()
         doNotStart = False
@@ -2131,16 +2131,16 @@
         # Get the command line arguments, the working directory and the
         # exception reporting flag.
         cap = (
-            self.tr("Profile of Project")
+            self.tr("Profile Run of Project")
             if runProject
-            else self.tr("Profile of Script")
+            else self.tr("Profile Run of Script")
         )
         if runProject:
             scriptName = self.project.getMainScript(True)
             if not scriptName:
                 EricMessageBox.critical(
                     self.ui,
-                    self.tr("Profile of Project"),
+                    self.tr("Profile Run of Project"),
                     self.tr(
                         "There is no main script defined for the"
                         " current project. Aborting"
@@ -2162,7 +2162,7 @@
             self.exceptions,
             self.unhandledExceptions,
             self.ui,
-            3,
+            StartDialogMode.Profile,
             autoClearShell=self.autoClearShell,
             configOverride=self.overrideGlobalConfig,
             forProject=runProject,
@@ -2327,7 +2327,7 @@
         @param script name of a script (optional)
         @type str
         """
-        from .StartDialog import StartDialog
+        from .StartDialog import StartDialog, StartDialogMode
 
         self.__resetUI()
         doNotStart = False
@@ -2362,7 +2362,7 @@
             self.exceptions,
             self.unhandledExceptions,
             self.ui,
-            1,
+            StartDialogMode.Run,
             autoClearShell=self.autoClearShell,
             configOverride=self.overrideGlobalConfig,
             forProject=runProject,
@@ -2522,7 +2522,7 @@
         @param script name of a script (optional)
         @type str
         """
-        from .StartDialog import StartDialog
+        from .StartDialog import StartDialog, StartDialogMode
 
         self.__resetUI()
         doNotStart = False
@@ -2557,7 +2557,7 @@
             self.exceptions,
             self.unhandledExceptions,
             self.ui,
-            0,
+            StartDialogMode.Debug,
             tracePython=self.tracePython,
             autoClearShell=self.autoClearShell,
             autoContinue=self.autoContinue,

eric ide

mercurial