src/eric7/Debugger/DebugUI.py

branch
eric7
changeset 9377
b9c8dc3b7da1
parent 9315
79be00bfe50c
child 9382
fb89c1dc9825
equal deleted inserted replaced
9376:e143a7e7254b 9377:b9c8dc3b7da1
32 32
33 import Preferences 33 import Preferences
34 import Utilities 34 import Utilities
35 import UI.PixmapCache 35 import UI.PixmapCache
36 import UI.Config 36 import UI.Config
37
38 from eric7config import getConfig
39 37
40 38
41 class DebugUI(QObject): 39 class DebugUI(QObject):
42 """ 40 """
43 Class implementing the debugger part of the UI. 41 Class implementing the debugger part of the UI.
2080 self.viewmanager.unhighlight() 2078 self.viewmanager.unhighlight()
2081 2079
2082 if not doNotStart: 2080 if not doNotStart:
2083 if runProject and self.project.getProjectType() in ["E7Plugin"]: 2081 if runProject and self.project.getProjectType() in ["E7Plugin"]:
2084 argv = '--plugin="{0}" {1}'.format(fn, argv) 2082 argv = '--plugin="{0}" {1}'.format(fn, argv)
2085 fn = os.path.join(getConfig("ericDir"), "eric7.py") 2083 fn = os.path.join(os.path.dirname(__file__), "..", "eric7_ide.py")
2086 2084
2087 self.debugViewer.initCallStackViewer(runProject) 2085 self.debugViewer.initCallStackViewer(runProject)
2088 2086
2089 # Ask the client to open the new program. 2087 # Ask the client to open the new program.
2090 self.debugServer.remoteCoverage( 2088 self.debugServer.remoteCoverage(
2284 self.viewmanager.unhighlight() 2282 self.viewmanager.unhighlight()
2285 2283
2286 if not doNotStart: 2284 if not doNotStart:
2287 if runProject and self.project.getProjectType() in ["E7Plugin"]: 2285 if runProject and self.project.getProjectType() in ["E7Plugin"]:
2288 argv = '--plugin="{0}" {1}'.format(fn, argv) 2286 argv = '--plugin="{0}" {1}'.format(fn, argv)
2289 fn = os.path.join(getConfig("ericDir"), "eric7.py") 2287 fn = os.path.join(os.path.dirname(__file__), "..", "eric7_ide.py")
2290 2288
2291 self.debugViewer.initCallStackViewer(runProject) 2289 self.debugViewer.initCallStackViewer(runProject)
2292 2290
2293 # Ask the client to open the new program. 2291 # Ask the client to open the new program.
2294 self.debugServer.remoteProfile( 2292 self.debugServer.remoteProfile(
2480 self.viewmanager.unhighlight() 2478 self.viewmanager.unhighlight()
2481 2479
2482 if not doNotStart: 2480 if not doNotStart:
2483 if runProject and self.project.getProjectType() in ["E7Plugin"]: 2481 if runProject and self.project.getProjectType() in ["E7Plugin"]:
2484 argv = '--plugin="{0}" {1}'.format(fn, argv) 2482 argv = '--plugin="{0}" {1}'.format(fn, argv)
2485 fn = os.path.join(getConfig("ericDir"), "eric7.py") 2483 fn = os.path.join(os.path.dirname(__file__), "..", "eric7_ide.py")
2486 2484
2487 self.debugViewer.initCallStackViewer(runProject) 2485 self.debugViewer.initCallStackViewer(runProject)
2488 2486
2489 # Ask the client to open the new program. 2487 # Ask the client to open the new program.
2490 self.debugServer.remoteRun( 2488 self.debugServer.remoteRun(
2699 self.viewmanager.unhighlight() 2697 self.viewmanager.unhighlight()
2700 2698
2701 if not doNotStart: 2699 if not doNotStart:
2702 if debugProject and self.project.getProjectType() in ["E7Plugin"]: 2700 if debugProject and self.project.getProjectType() in ["E7Plugin"]:
2703 argv = '--plugin="{0}" {1}'.format(fn, argv) 2701 argv = '--plugin="{0}" {1}'.format(fn, argv)
2704 fn = os.path.join(getConfig("ericDir"), "eric7.py") 2702 fn = os.path.join(os.path.dirname(__file__), "..", "eric7_ide.py")
2705 tracePython = True # override flag because it must be true 2703 tracePython = True # override flag because it must be true
2706 2704
2707 self.debugViewer.initCallStackViewer(debugProject) 2705 self.debugViewer.initCallStackViewer(debugProject)
2708 2706
2709 # Ask the client to send call trace info 2707 # Ask the client to send call trace info
2796 self.viewmanager.unhighlight() 2794 self.viewmanager.unhighlight()
2797 2795
2798 if not doNotStart: 2796 if not doNotStart:
2799 if forProject and self.project.getProjectType() in ["E7Plugin"]: 2797 if forProject and self.project.getProjectType() in ["E7Plugin"]:
2800 argv = '--plugin="{0}" {1}'.format(fn, argv) 2798 argv = '--plugin="{0}" {1}'.format(fn, argv)
2801 fn = os.path.join(getConfig("ericDir"), "eric7.py") 2799 fn = os.path.join(os.path.dirname(__file__), "..", "eric7_ide.py")
2802 2800
2803 self.debugViewer.initCallStackViewer(forProject) 2801 self.debugViewer.initCallStackViewer(forProject)
2804 2802
2805 if self.lastStartAction in [1, 2]: 2803 if self.lastStartAction in [1, 2]:
2806 # Ask the client to send call trace info 2804 # Ask the client to send call trace info

eric ide

mercurial