trace_this_thread#
- debugpy.trace_this_thread(__should_trace: bool)#
Tells the debug adapter to enable or disable tracing on the current thread.
When the thread is traced, the debug adapter can detect breakpoints being hit, but execution is slower, especially in functions that have any breakpoints set in them. Disabling tracing when breakpoints are not anticipated to be hit can improve performance. It can also be used to skip breakpoints on a particular thread.
Tracing is automatically disabled for all threads when there is no client connected to the debug adapter.