src/eric7/Debugger/DebugUI.py

branch
eric7
changeset 10306
904f4c7da759
parent 10065
de4ae767b0e3
child 10321
4a017fdf316f
equal deleted inserted replaced
10305:3fe0ba548fe5 10306:904f4c7da759
1917 (True) or script (false) 1917 (True) or script (false)
1918 @type bool 1918 @type bool
1919 @param script name of a script (optional) 1919 @param script name of a script (optional)
1920 @type str 1920 @type str
1921 """ 1921 """
1922 from .StartDialog import StartDialog 1922 from .StartDialog import StartDialog, StartDialogMode
1923 1923
1924 self.__resetUI() 1924 self.__resetUI()
1925 doNotStart = False 1925 doNotStart = False
1926 1926
1927 # Get the command line arguments, the working directory and the 1927 # Get the command line arguments, the working directory and the
1928 # exception reporting flag. 1928 # exception reporting flag.
1929 cap = ( 1929 cap = (
1930 self.tr("Coverage of Project") 1930 self.tr("Coverage Run of Project")
1931 if runProject 1931 if runProject
1932 else self.tr("Coverage of Script") 1932 else self.tr("Coverage Run of Script")
1933 ) 1933 )
1934 if runProject: 1934 if runProject:
1935 scriptName = self.project.getMainScript(True) 1935 scriptName = self.project.getMainScript(True)
1936 if not scriptName: 1936 if not scriptName:
1937 EricMessageBox.critical( 1937 EricMessageBox.critical(
1938 self.ui, 1938 self.ui,
1939 self.tr("Coverage of Project"), 1939 self.tr("Coverage Run of Project"),
1940 self.tr( 1940 self.tr(
1941 "There is no main script defined for the" 1941 "There is no main script defined for the"
1942 " current project. Aborting" 1942 " current project. Aborting"
1943 ), 1943 ),
1944 ) 1944 )
1956 self.wdHistory, 1956 self.wdHistory,
1957 self.envHistory, 1957 self.envHistory,
1958 self.exceptions, 1958 self.exceptions,
1959 self.unhandledExceptions, 1959 self.unhandledExceptions,
1960 self.ui, 1960 self.ui,
1961 2, 1961 StartDialogMode.Coverage,
1962 autoClearShell=self.autoClearShell, 1962 autoClearShell=self.autoClearShell,
1963 configOverride=self.overrideGlobalConfig, 1963 configOverride=self.overrideGlobalConfig,
1964 forProject=runProject, 1964 forProject=runProject,
1965 scriptName=scriptName, 1965 scriptName=scriptName,
1966 scriptsList=self.scriptsHistory, 1966 scriptsList=self.scriptsHistory,
2121 (True) or script (False) 2121 (True) or script (False)
2122 @type bool 2122 @type bool
2123 @param script name of a script (optional) 2123 @param script name of a script (optional)
2124 @type str 2124 @type str
2125 """ 2125 """
2126 from .StartDialog import StartDialog 2126 from .StartDialog import StartDialog, StartDialogMode
2127 2127
2128 self.__resetUI() 2128 self.__resetUI()
2129 doNotStart = False 2129 doNotStart = False
2130 2130
2131 # Get the command line arguments, the working directory and the 2131 # Get the command line arguments, the working directory and the
2132 # exception reporting flag. 2132 # exception reporting flag.
2133 cap = ( 2133 cap = (
2134 self.tr("Profile of Project") 2134 self.tr("Profile Run of Project")
2135 if runProject 2135 if runProject
2136 else self.tr("Profile of Script") 2136 else self.tr("Profile Run of Script")
2137 ) 2137 )
2138 if runProject: 2138 if runProject:
2139 scriptName = self.project.getMainScript(True) 2139 scriptName = self.project.getMainScript(True)
2140 if not scriptName: 2140 if not scriptName:
2141 EricMessageBox.critical( 2141 EricMessageBox.critical(
2142 self.ui, 2142 self.ui,
2143 self.tr("Profile of Project"), 2143 self.tr("Profile Run of Project"),
2144 self.tr( 2144 self.tr(
2145 "There is no main script defined for the" 2145 "There is no main script defined for the"
2146 " current project. Aborting" 2146 " current project. Aborting"
2147 ), 2147 ),
2148 ) 2148 )
2160 self.wdHistory, 2160 self.wdHistory,
2161 self.envHistory, 2161 self.envHistory,
2162 self.exceptions, 2162 self.exceptions,
2163 self.unhandledExceptions, 2163 self.unhandledExceptions,
2164 self.ui, 2164 self.ui,
2165 3, 2165 StartDialogMode.Profile,
2166 autoClearShell=self.autoClearShell, 2166 autoClearShell=self.autoClearShell,
2167 configOverride=self.overrideGlobalConfig, 2167 configOverride=self.overrideGlobalConfig,
2168 forProject=runProject, 2168 forProject=runProject,
2169 scriptName=scriptName, 2169 scriptName=scriptName,
2170 scriptsList=self.scriptsHistory, 2170 scriptsList=self.scriptsHistory,
2325 or script (False) 2325 or script (False)
2326 @type bool 2326 @type bool
2327 @param script name of a script (optional) 2327 @param script name of a script (optional)
2328 @type str 2328 @type str
2329 """ 2329 """
2330 from .StartDialog import StartDialog 2330 from .StartDialog import StartDialog, StartDialogMode
2331 2331
2332 self.__resetUI() 2332 self.__resetUI()
2333 doNotStart = False 2333 doNotStart = False
2334 2334
2335 # Get the command line arguments, the working directory and the 2335 # Get the command line arguments, the working directory and the
2360 self.wdHistory, 2360 self.wdHistory,
2361 self.envHistory, 2361 self.envHistory,
2362 self.exceptions, 2362 self.exceptions,
2363 self.unhandledExceptions, 2363 self.unhandledExceptions,
2364 self.ui, 2364 self.ui,
2365 1, 2365 StartDialogMode.Run,
2366 autoClearShell=self.autoClearShell, 2366 autoClearShell=self.autoClearShell,
2367 configOverride=self.overrideGlobalConfig, 2367 configOverride=self.overrideGlobalConfig,
2368 forProject=runProject, 2368 forProject=runProject,
2369 scriptName=scriptName, 2369 scriptName=scriptName,
2370 scriptsList=self.scriptsHistory, 2370 scriptsList=self.scriptsHistory,
2520 (True) or script (False) 2520 (True) or script (False)
2521 @type bool 2521 @type bool
2522 @param script name of a script (optional) 2522 @param script name of a script (optional)
2523 @type str 2523 @type str
2524 """ 2524 """
2525 from .StartDialog import StartDialog 2525 from .StartDialog import StartDialog, StartDialogMode
2526 2526
2527 self.__resetUI() 2527 self.__resetUI()
2528 doNotStart = False 2528 doNotStart = False
2529 2529
2530 # Get the command line arguments, the working directory and the 2530 # Get the command line arguments, the working directory and the
2555 self.wdHistory, 2555 self.wdHistory,
2556 self.envHistory, 2556 self.envHistory,
2557 self.exceptions, 2557 self.exceptions,
2558 self.unhandledExceptions, 2558 self.unhandledExceptions,
2559 self.ui, 2559 self.ui,
2560 0, 2560 StartDialogMode.Debug,
2561 tracePython=self.tracePython, 2561 tracePython=self.tracePython,
2562 autoClearShell=self.autoClearShell, 2562 autoClearShell=self.autoClearShell,
2563 autoContinue=self.autoContinue, 2563 autoContinue=self.autoContinue,
2564 enableMultiprocess=self.enableMultiprocess, 2564 enableMultiprocess=self.enableMultiprocess,
2565 multiprocessNoDebugHistory=self.multiprocessNoDebugHistory, 2565 multiprocessNoDebugHistory=self.multiprocessNoDebugHistory,

eric ide

mercurial