Debugger/DebuggerInterfacePython.py

changeset 112
16893e193e9d
parent 96
9624a110667d
child 406
eacf81fad150
child 712
58c7e6bbe7ec
equal deleted inserted replaced
111:1887e3af7b74 112:16893e193e9d
435 self.__sendCommand('%s%s\n' % (RequestForkMode, repr((autoFork, forkChild)))) 435 self.__sendCommand('%s%s\n' % (RequestForkMode, repr((autoFork, forkChild))))
436 self.__sendCommand('%s%s|%s|%s|%d\n' % \ 436 self.__sendCommand('%s%s|%s|%s|%d\n' % \
437 (RequestLoad, wd, fn, str(Utilities.parseOptionString(argv)), 437 (RequestLoad, wd, fn, str(Utilities.parseOptionString(argv)),
438 traceInterpreter)) 438 traceInterpreter))
439 439
440 def remoteRun(self, fn, argv, wd): 440 def remoteRun(self, fn, argv, wd, autoFork = False, forkChild = False):
441 """ 441 """
442 Public method to load a new program to run. 442 Public method to load a new program to run.
443 443
444 @param fn the filename to run (string) 444 @param fn the filename to run (string)
445 @param argv the commandline arguments to pass to the program (string) 445 @param argv the commandline arguments to pass to the program (string)
446 @param wd the working directory for the program (string) 446 @param wd the working directory for the program (string)
447 @keyparam autoFork flag indicating the automatic fork mode (boolean)
448 @keyparam forkChild flag indicating to debug the child after forking (boolean)
447 """ 449 """
448 wd = self.translate(wd, False) 450 wd = self.translate(wd, False)
449 fn = self.translate(os.path.abspath(fn), False) 451 fn = self.translate(os.path.abspath(fn), False)
452 self.__sendCommand('%s%s\n' % (RequestForkMode, repr((autoFork, forkChild))))
450 self.__sendCommand('%s%s|%s|%s\n' % \ 453 self.__sendCommand('%s%s|%s|%s\n' % \
451 (RequestRun, wd, fn, str(Utilities.parseOptionString(argv)))) 454 (RequestRun, wd, fn, str(Utilities.parseOptionString(argv))))
452 455
453 def remoteCoverage(self, fn, argv, wd, erase = False): 456 def remoteCoverage(self, fn, argv, wd, erase = False):
454 """ 457 """

eric ide

mercurial