1774 if debugProject and self.project.getProjectType() == "E4Plugin": |
1774 if debugProject and self.project.getProjectType() == "E4Plugin": |
1775 argv = '--plugin="{0}" {1}'.format(fn, argv) |
1775 argv = '--plugin="{0}" {1}'.format(fn, argv) |
1776 fn = os.path.join(getConfig('ericDir'), "eric5.py") |
1776 fn = os.path.join(getConfig('ericDir'), "eric5.py") |
1777 tracePython = True # override flag because it must be true |
1777 tracePython = True # override flag because it must be true |
1778 |
1778 |
|
1779 # Ask the client to send call trace info |
|
1780 enableCallTrace = self.debugViewer.isCallTraceEnabled() |
|
1781 if enableCallTrace: |
|
1782 self.debugViewer.clearCallTrace() |
|
1783 |
1779 # Ask the client to open the new program. |
1784 # Ask the client to open the new program. |
1780 self.debugServer.remoteLoad(fn, argv, wd, env, |
1785 self.debugServer.remoteLoad(fn, argv, wd, env, |
1781 autoClearShell=self.autoClearShell, tracePython=tracePython, |
1786 autoClearShell=self.autoClearShell, tracePython=tracePython, |
1782 autoContinue=autoContinue, forProject=debugProject, |
1787 autoContinue=autoContinue, forProject=debugProject, |
1783 runInConsole=console, autoFork=forkAutomatically, |
1788 runInConsole=console, autoFork=forkAutomatically, |
1784 forkChild=forkIntoChild, clientType=self.clientType) |
1789 forkChild=forkIntoChild, clientType=self.clientType, |
|
1790 enableCallTrace=enableCallTrace) |
1785 |
1791 |
1786 # Signal that we have started a debugging session |
1792 # Signal that we have started a debugging session |
1787 self.debuggingStarted.emit(fn) |
1793 self.debuggingStarted.emit(fn) |
1788 |
1794 |
1789 self.stopAct.setEnabled(True) |
1795 self.stopAct.setEnabled(True) |
1825 if forProject and self.project.getProjectType() == "E4Plugin": |
1831 if forProject and self.project.getProjectType() == "E4Plugin": |
1826 argv = '--plugin="{0}" {1}'.format(fn, argv) |
1832 argv = '--plugin="{0}" {1}'.format(fn, argv) |
1827 fn = os.path.join(getConfig('ericDir'), "eric5.py") |
1833 fn = os.path.join(getConfig('ericDir'), "eric5.py") |
1828 |
1834 |
1829 if self.lastStartAction in [1, 2]: |
1835 if self.lastStartAction in [1, 2]: |
|
1836 # Ask the client to send call trace info |
|
1837 enableCallTrace = self.debugViewer.isCallTraceEnabled() |
|
1838 if enableCallTrace: |
|
1839 self.debugViewer.clearCallTrace() |
|
1840 |
1830 # Ask the client to debug the new program. |
1841 # Ask the client to debug the new program. |
1831 self.debugServer.remoteLoad(fn, argv, wd, env, |
1842 self.debugServer.remoteLoad(fn, argv, wd, env, |
1832 autoClearShell=self.autoClearShell, tracePython=self.tracePython, |
1843 autoClearShell=self.autoClearShell, tracePython=self.tracePython, |
1833 autoContinue=self.autoContinue, forProject=forProject, |
1844 autoContinue=self.autoContinue, forProject=forProject, |
1834 runInConsole=self.runInConsole, autoFork=self.forkAutomatically, |
1845 runInConsole=self.runInConsole, autoFork=self.forkAutomatically, |
1835 forkChild=self.forkIntoChild, clientType=self.clientType) |
1846 forkChild=self.forkIntoChild, clientType=self.clientType, |
|
1847 enableCallTrace=enableCallTrace) |
1836 |
1848 |
1837 # Signal that we have started a debugging session |
1849 # Signal that we have started a debugging session |
1838 self.debuggingStarted.emit(fn) |
1850 self.debuggingStarted.emit(fn) |
1839 |
1851 |
1840 elif self.lastStartAction in [3, 4]: |
1852 elif self.lastStartAction in [3, 4]: |