650 self.debugging = True |
650 self.debugging = True |
651 self.__restoreBreakpoints() |
651 self.__restoreBreakpoints() |
652 self.__restoreWatchpoints() |
652 self.__restoreWatchpoints() |
653 |
653 |
654 def remoteRun(self, fn, argv, wd, env, autoClearShell = True, |
654 def remoteRun(self, fn, argv, wd, env, autoClearShell = True, |
655 forProject = False, runInConsole = False): |
655 forProject = False, runInConsole = False, |
|
656 autoFork = False, forkChild = False): |
656 """ |
657 """ |
657 Public method to load a new program to run. |
658 Public method to load a new program to run. |
658 |
659 |
659 @param fn the filename to run (string) |
660 @param fn the filename to run (string) |
660 @param argv the commandline arguments to pass to the program (string) |
661 @param argv the commandline arguments to pass to the program (string) |
663 @keyparam autoClearShell flag indicating, that the interpreter window should |
664 @keyparam autoClearShell flag indicating, that the interpreter window should |
664 be cleared (boolean) |
665 be cleared (boolean) |
665 @keyparam forProject flag indicating a project related action (boolean) |
666 @keyparam forProject flag indicating a project related action (boolean) |
666 @keyparam runInConsole flag indicating to start the debugger in a |
667 @keyparam runInConsole flag indicating to start the debugger in a |
667 console window (boolean) |
668 console window (boolean) |
|
669 @keyparam autoFork flag indicating the automatic fork mode (boolean) |
|
670 @keyparam forkChild flag indicating to debug the child after forking (boolean) |
668 """ |
671 """ |
669 self.__autoClearShell = autoClearShell |
672 self.__autoClearShell = autoClearShell |
670 |
673 |
671 # Restart the client |
674 # Restart the client |
672 try: |
675 try: |
675 self.__setClientType('Python') # assume it is a Python file |
678 self.__setClientType('Python') # assume it is a Python file |
676 self.startClient(False, forProject = forProject, runInConsole = runInConsole) |
679 self.startClient(False, forProject = forProject, runInConsole = runInConsole) |
677 |
680 |
678 self.remoteEnvironment(env) |
681 self.remoteEnvironment(env) |
679 |
682 |
680 self.debuggerInterface.remoteRun(fn, argv, wd) |
683 self.debuggerInterface.remoteRun(fn, argv, wd, autoFork, forkChild) |
681 self.debugging = False |
684 self.debugging = False |
682 |
685 |
683 def remoteCoverage(self, fn, argv, wd, env, autoClearShell = True, |
686 def remoteCoverage(self, fn, argv, wd, env, autoClearShell = True, |
684 erase = False, forProject = False, runInConsole = False): |
687 erase = False, forProject = False, runInConsole = False): |
685 """ |
688 """ |