Debugger/DebugUI.py

changeset 15
f6ccc31d6e72
parent 13
1af94a91f439
child 55
b5c84934de9c
equal deleted inserted replaced
14:092aa8fafa4e 15:f6ccc31d6e72
24 import UI.PixmapCache 24 import UI.PixmapCache
25 import UI.Config 25 import UI.Config
26 26
27 from E4Gui.E4Action import E4Action, createActionGroup 27 from E4Gui.E4Action import E4Action, createActionGroup
28 28
29 from eric4config import getConfig 29 from eric5config import getConfig
30 30
31 class DebugUI(QObject): 31 class DebugUI(QObject):
32 """ 32 """
33 Class implementing the debugger part of the UI. 33 Class implementing the debugger part of the UI.
34 34
1415 self.viewmanager.unhighlight() 1415 self.viewmanager.unhighlight()
1416 1416
1417 if not doNotStart: 1417 if not doNotStart:
1418 if runProject and self.project.getProjectType() == "E4Plugin": 1418 if runProject and self.project.getProjectType() == "E4Plugin":
1419 argv.insert(0, "--plugin=%s " % fn) 1419 argv.insert(0, "--plugin=%s " % fn)
1420 fn = os.path.join(getConfig('ericDir'), "eric4.py") 1420 fn = os.path.join(getConfig('ericDir'), "eric5.py")
1421 1421
1422 # Ask the client to open the new program. 1422 # Ask the client to open the new program.
1423 self.debugServer.remoteCoverage(fn, argv, wd, env, 1423 self.debugServer.remoteCoverage(fn, argv, wd, env,
1424 autoClearShell = self.autoClearShell, erase = eraseCoverage, 1424 autoClearShell = self.autoClearShell, erase = eraseCoverage,
1425 forProject = runProject, runInConsole = console) 1425 forProject = runProject, runInConsole = console)
1519 self.viewmanager.unhighlight() 1519 self.viewmanager.unhighlight()
1520 1520
1521 if not doNotStart: 1521 if not doNotStart:
1522 if runProject and self.project.getProjectType() == "E4Plugin": 1522 if runProject and self.project.getProjectType() == "E4Plugin":
1523 argv.insert(0, "--plugin=%s " % fn) 1523 argv.insert(0, "--plugin=%s " % fn)
1524 fn = os.path.join(getConfig('ericDir'), "eric4.py") 1524 fn = os.path.join(getConfig('ericDir'), "eric5.py")
1525 1525
1526 # Ask the client to open the new program. 1526 # Ask the client to open the new program.
1527 self.debugServer.remoteProfile(fn, argv, wd, env, 1527 self.debugServer.remoteProfile(fn, argv, wd, env,
1528 autoClearShell = self.autoClearShell, erase = eraseTimings, 1528 autoClearShell = self.autoClearShell, erase = eraseTimings,
1529 forProject = runProject, runInConsole = console) 1529 forProject = runProject, runInConsole = console)
1619 self.viewmanager.unhighlight() 1619 self.viewmanager.unhighlight()
1620 1620
1621 if not doNotStart: 1621 if not doNotStart:
1622 if runProject and self.project.getProjectType() == "E4Plugin": 1622 if runProject and self.project.getProjectType() == "E4Plugin":
1623 argv.insert(0, "--plugin=%s " % fn) 1623 argv.insert(0, "--plugin=%s " % fn)
1624 fn = os.path.join(getConfig('ericDir'), "eric4.py") 1624 fn = os.path.join(getConfig('ericDir'), "eric5.py")
1625 1625
1626 # Ask the client to open the new program. 1626 # Ask the client to open the new program.
1627 self.debugServer.remoteRun(fn, argv, wd, env, 1627 self.debugServer.remoteRun(fn, argv, wd, env,
1628 autoClearShell = self.autoClearShell, forProject = runProject, 1628 autoClearShell = self.autoClearShell, forProject = runProject,
1629 runInConsole = console) 1629 runInConsole = console)
1733 self.viewmanager.unhighlight() 1733 self.viewmanager.unhighlight()
1734 1734
1735 if not doNotStart: 1735 if not doNotStart:
1736 if debugProject and self.project.getProjectType() == "E4Plugin": 1736 if debugProject and self.project.getProjectType() == "E4Plugin":
1737 argv.insert(0, "--plugin=%s " % fn) 1737 argv.insert(0, "--plugin=%s " % fn)
1738 fn = os.path.join(getConfig('ericDir'), "eric4.py") 1738 fn = os.path.join(getConfig('ericDir'), "eric5.py")
1739 tracePython = True # override flag because it must be true 1739 tracePython = True # override flag because it must be true
1740 1740
1741 # Ask the client to open the new program. 1741 # Ask the client to open the new program.
1742 self.debugServer.remoteLoad(fn, argv, wd, env, 1742 self.debugServer.remoteLoad(fn, argv, wd, env,
1743 autoClearShell = self.autoClearShell, tracePython = tracePython, 1743 autoClearShell = self.autoClearShell, tracePython = tracePython,
1784 self.viewmanager.unhighlight() 1784 self.viewmanager.unhighlight()
1785 1785
1786 if not doNotStart: 1786 if not doNotStart:
1787 if forProject and self.project.getProjectType() == "E4Plugin": 1787 if forProject and self.project.getProjectType() == "E4Plugin":
1788 argv.insert(0, "--plugin=%s " % fn) 1788 argv.insert(0, "--plugin=%s " % fn)
1789 fn = os.path.join(getConfig('ericDir'), "eric4.py") 1789 fn = os.path.join(getConfig('ericDir'), "eric5.py")
1790 1790
1791 if self.lastStartAction in [1, 2]: 1791 if self.lastStartAction in [1, 2]:
1792 # Ask the client to debug the new program. 1792 # Ask the client to debug the new program.
1793 self.debugServer.remoteLoad(fn, argv, wd, env, 1793 self.debugServer.remoteLoad(fn, argv, wd, env,
1794 autoClearShell = self.autoClearShell, tracePython = self.tracePython, 1794 autoClearShell = self.autoClearShell, tracePython = self.tracePython,

eric ide

mercurial