eric6/DebugClients/Python/MultiProcessDebugExtension.py

changeset 8222
5994b80b8760
parent 7973
e836d196e888
child 8243
cc717c2ae956
equal deleted inserted replaced
8221:0572a215bd2f 8222:5994b80b8760
304 304
305 frame = frame.f_back 305 frame = frame.f_back
306 frame = None # Just make sure we don't hold on to it. 306 frame = None # Just make sure we don't hold on to it.
307 307
308 childProcess = getattr(os, originalName)() # fork 308 childProcess = getattr(os, originalName)() # fork
309 if not childProcess and not isMultiprocessingPopen: 309 if (
310 if isNewPythonProcess: 310 not childProcess and
311 (wd, host, port, exceptions, tracePython, redirect, 311 not isMultiprocessingPopen and
312 noencoding) = _debugClient.startOptions 312 isNewPythonProcess
313 _debugClient.startDebugger( 313 ):
314 filename=sys.argv[0], 314 (wd, host, port, exceptions, tracePython, redirect,
315 host=host, 315 noencoding) = _debugClient.startOptions
316 port=port, 316 _debugClient.startDebugger(
317 enableTrace=multiprocess and not isSubprocessFork, 317 filename=sys.argv[0],
318 exceptions=exceptions, 318 host=host,
319 tracePython=tracePython, 319 port=port,
320 redirect=redirect, 320 enableTrace=multiprocess and not isSubprocessFork,
321 passive=False, 321 exceptions=exceptions,
322 multiprocessSupport=multiprocess) 322 tracePython=tracePython,
323 redirect=redirect,
324 passive=False,
325 multiprocessSupport=multiprocess)
323 return childProcess 326 return childProcess
324 327
325 return newFork 328 return newFork
326 329
327 330

eric ide

mercurial