mirror of
https://github.com/microsoft/debugpy.git
synced 2025-12-23 08:48:12 +00:00
Add adapter pid to ignore list (#1801)
This commit is contained in:
parent
bb5da4e19f
commit
346ebd47cd
1 changed files with 4 additions and 2 deletions
|
|
@ -123,8 +123,10 @@ def enable_attach(dont_trace_start_patterns, dont_trace_end_patterns):
|
|||
|
||||
# Adapter life time is expected to be longer than this process,
|
||||
# so never wait on the adapter process
|
||||
# TODO: Add adapter PID to ignore list https://github.com/microsoft/ptvsd/issues/1786
|
||||
subprocess.Popen(adapter_args, bufsize=0)
|
||||
process = subprocess.Popen(adapter_args, bufsize=0)
|
||||
# Ensure that we ignore the adapter process when terminating the
|
||||
# debugger.
|
||||
pydevd.add_dont_terminate_child_pid(process.pid)
|
||||
|
||||
server_opts.port = port_queue.get(True, _QUEUE_TIMEOUT)
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue