Debugger/DebugUI.py

changeset 3670
f0cb7579c0b4
parent 3656
441956d8fce5
child 3691
c473d6347610
equal deleted inserted replaced
3669:ac84ac3c0f05 3670:f0cb7579c0b4
26 import UI.Config 26 import UI.Config
27 27
28 from E5Gui.E5Action import E5Action, createActionGroup 28 from E5Gui.E5Action import E5Action, createActionGroup
29 from E5Gui import E5MessageBox 29 from E5Gui import E5MessageBox
30 30
31 from eric5config import getConfig 31 from eric6config import getConfig
32 32
33 33
34 class DebugUI(QObject): 34 class DebugUI(QObject):
35 """ 35 """
36 Class implementing the debugger part of the UI. 36 Class implementing the debugger part of the UI.
1565 self.viewmanager.unhighlight() 1565 self.viewmanager.unhighlight()
1566 1566
1567 if not doNotStart: 1567 if not doNotStart:
1568 if runProject and self.project.getProjectType() == "E4Plugin": 1568 if runProject and self.project.getProjectType() == "E4Plugin":
1569 argv = '--plugin="{0}" {1}'.format(fn, argv) 1569 argv = '--plugin="{0}" {1}'.format(fn, argv)
1570 fn = os.path.join(getConfig('ericDir'), "eric5.py") 1570 fn = os.path.join(getConfig('ericDir'), "eric6.py")
1571 1571
1572 self.debugViewer.initCallStackViewer(runProject) 1572 self.debugViewer.initCallStackViewer(runProject)
1573 1573
1574 # Ask the client to open the new program. 1574 # Ask the client to open the new program.
1575 self.debugServer.remoteCoverage( 1575 self.debugServer.remoteCoverage(
1683 self.viewmanager.unhighlight() 1683 self.viewmanager.unhighlight()
1684 1684
1685 if not doNotStart: 1685 if not doNotStart:
1686 if runProject and self.project.getProjectType() == "E4Plugin": 1686 if runProject and self.project.getProjectType() == "E4Plugin":
1687 argv = '--plugin="{0}" {1}'.format(fn, argv) 1687 argv = '--plugin="{0}" {1}'.format(fn, argv)
1688 fn = os.path.join(getConfig('ericDir'), "eric5.py") 1688 fn = os.path.join(getConfig('ericDir'), "eric6.py")
1689 1689
1690 self.debugViewer.initCallStackViewer(runProject) 1690 self.debugViewer.initCallStackViewer(runProject)
1691 1691
1692 # Ask the client to open the new program. 1692 # Ask the client to open the new program.
1693 self.debugServer.remoteProfile( 1693 self.debugServer.remoteProfile(
1804 self.viewmanager.unhighlight() 1804 self.viewmanager.unhighlight()
1805 1805
1806 if not doNotStart: 1806 if not doNotStart:
1807 if runProject and self.project.getProjectType() == "E4Plugin": 1807 if runProject and self.project.getProjectType() == "E4Plugin":
1808 argv = '--plugin="{0}" {1}'.format(fn, argv) 1808 argv = '--plugin="{0}" {1}'.format(fn, argv)
1809 fn = os.path.join(getConfig('ericDir'), "eric5.py") 1809 fn = os.path.join(getConfig('ericDir'), "eric6.py")
1810 1810
1811 self.debugViewer.initCallStackViewer(runProject) 1811 self.debugViewer.initCallStackViewer(runProject)
1812 1812
1813 # Ask the client to open the new program. 1813 # Ask the client to open the new program.
1814 self.debugServer.remoteRun( 1814 self.debugServer.remoteRun(
1933 1933
1934 if not doNotStart: 1934 if not doNotStart:
1935 if debugProject and \ 1935 if debugProject and \
1936 self.project.getProjectType() == "E4Plugin": 1936 self.project.getProjectType() == "E4Plugin":
1937 argv = '--plugin="{0}" {1}'.format(fn, argv) 1937 argv = '--plugin="{0}" {1}'.format(fn, argv)
1938 fn = os.path.join(getConfig('ericDir'), "eric5.py") 1938 fn = os.path.join(getConfig('ericDir'), "eric6.py")
1939 tracePython = True # override flag because it must be true 1939 tracePython = True # override flag because it must be true
1940 1940
1941 self.debugViewer.initCallStackViewer(debugProject) 1941 self.debugViewer.initCallStackViewer(debugProject)
1942 1942
1943 # Ask the client to send call trace info 1943 # Ask the client to send call trace info
1995 self.viewmanager.unhighlight() 1995 self.viewmanager.unhighlight()
1996 1996
1997 if not doNotStart: 1997 if not doNotStart:
1998 if forProject and self.project.getProjectType() == "E4Plugin": 1998 if forProject and self.project.getProjectType() == "E4Plugin":
1999 argv = '--plugin="{0}" {1}'.format(fn, argv) 1999 argv = '--plugin="{0}" {1}'.format(fn, argv)
2000 fn = os.path.join(getConfig('ericDir'), "eric5.py") 2000 fn = os.path.join(getConfig('ericDir'), "eric6.py")
2001 2001
2002 self.debugViewer.initCallStackViewer(forProject) 2002 self.debugViewer.initCallStackViewer(forProject)
2003 2003
2004 if self.lastStartAction in [1, 2]: 2004 if self.lastStartAction in [1, 2]:
2005 # Ask the client to send call trace info 2005 # Ask the client to send call trace info

eric ide

mercurial