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)
| 3391 | |
| 3392 | |
| 3393 | def 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 | |
| 3411 | class SetupHolder: |
nothing calls this directly
no test coverage detected