Add adapter pid to ignore list (#1801)

This commit is contained in:
Karthik Nadig 2019-09-24 17:31:52 -07:00 committed by GitHub
parent bb5da4e19f
commit 346ebd47cd
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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)