MCPcopy Create free account
hub / github.com/fabioz/PyDev.Debugger / add_dont_terminate_child_pid

Function add_dont_terminate_child_pid

pydevd.py:3393–3408  ·  view source on GitHub ↗

May be used to ask pydevd to skip the termination of some process when it's asked to terminate (debug adapter protocol only). :param int pid: The pid to be ignored. i.e.: process = subprocess.Popen(...) pydevd.add_dont_terminate_child_pid(process.pid)

(pid)

Source from the content-addressed store, hash-verified

3391
3392
3393def add_dont_terminate_child_pid(pid):
3394 """
3395 May be used to ask pydevd to skip the termination of some process
3396 when it's asked to terminate (debug adapter protocol only).
3397
3398 :param int pid:
3399 The pid to be ignored.
3400
3401 i.e.:
3402
3403 process = subprocess.Popen(...)
3404 pydevd.add_dont_terminate_child_pid(process.pid)
3405 """
3406 py_db = get_global_debugger()
3407 if py_db is not None:
3408 py_db.dont_terminate_child_pids.add(pid)
3409
3410
3411class SetupHolder:

Callers

nothing calls this directly

Calls 2

get_global_debuggerFunction · 0.85
addMethod · 0.45

Tested by

no test coverage detected