eric6/DebugClients/Python/DebugClientBase.py

branch
multi_processing
changeset 7563
b0d6b63f2843
parent 7428
27c55a3d0b89
child 7564
787684e6f2f3
equal deleted inserted replaced
7428:27c55a3d0b89 7563:b0d6b63f2843
2076 except IndexError: 2076 except IndexError:
2077 self.running = None 2077 self.running = None
2078 if self.running: 2078 if self.running:
2079 self.__setCoding(self.running) 2079 self.__setCoding(self.running)
2080 self.passive = passive 2080 self.passive = passive
2081 if passive: 2081 # if passive:
2082 self.sendPassiveStartup(self.running, exceptions) 2082 # self.sendPassiveStartup(self.running, exceptions)
2083 self.__interact() 2083 self.__interact()
2084 2084
2085 # setup the debugger variables 2085 # setup the debugger variables
2086 self._fncache = {} 2086 self._fncache = {}
2087 self.dircache = [] 2087 self.dircache = []
2355 Public method implementing a fork routine deciding which branch 2355 Public method implementing a fork routine deciding which branch
2356 to follow. 2356 to follow.
2357 2357
2358 @return process ID (integer) 2358 @return process ID (integer)
2359 """ 2359 """
2360 if not self.fork_auto: 2360 ## if not self.fork_auto:
2361 self.sendJsonCommand("RequestForkTo", {}) 2361 ## self.sendJsonCommand("RequestForkTo", {})
2362 self.eventLoop(True) 2362 ## self.eventLoop(True)
2363 pid = DebugClientOrigFork() 2363 pid = DebugClientOrigFork()
2364 if pid == 0: 2364 if pid == 0:
2365 # child 2365 # child
2366 if not self.fork_child: 2366 ## if not self.fork_child:
2367 sys.settrace(None) 2367 sys.settrace(None)
2368 sys.setprofile(None) 2368 sys.setprofile(None)
2369 self.sessionClose(False) 2369 self.sessionClose(False)
2370 ## (wd, host, port, exceptions, tracePython, redirect, 2370 ## (wd, host, port, exceptions, tracePython, redirect,
2371 ## noencoding, fork_auto, fork_child) = self.startOptions 2371 ## noencoding, fork_auto, fork_child) = self.startOptions
2372 ## self.startDebugger(sys.argv[0], host, port, 2372 ## self.startDebugger(sys.argv[0], host, port,
2373 ## exceptions=exceptions, 2373 ## exceptions=exceptions,
2374 ## tracePython=tracePython, 2374 ## tracePython=tracePython,

eric ide

mercurial