MCPcopy Create free account
hub / github.com/microsoft/debugpy / hide_thread_from_debugger

Function hide_thread_from_debugger

src/debugpy/common/util.py:158–164  ·  view source on GitHub ↗

Disables tracing for the given thread if DEBUGPY_TRACE_DEBUGPY is not set. DEBUGPY_TRACE_DEBUGPY is used to debug debugpy with debugpy

(thread)

Source from the content-addressed store, hash-verified

156
157
158def hide_thread_from_debugger(thread):
159 """Disables tracing for the given thread if DEBUGPY_TRACE_DEBUGPY is not set.
160 DEBUGPY_TRACE_DEBUGPY is used to debug debugpy with debugpy
161 """
162 if hide_debugpy_internals():
163 thread.pydev_do_not_trace = True
164 thread.is_pydev_daemon_thread = True

Callers 3

startMethod · 0.90
_enqueue_handlersMethod · 0.90
serveFunction · 0.90

Calls 1

hide_debugpy_internalsFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…