Feature Request: Option to disable debugging for specific threads #1817
Replies: 4 comments 12 replies
-
Hi! This would be required on the debugpy level and not something we can just implement on the surface, sending it there. Thanks! |
Beta Was this translation helpful? Give feedback.
-
I think this might be possible, but it can get very complicated. See this issue here for some of why: |
Beta Was this translation helpful? Give feedback.
-
Converting to a discussion item for up votes |
Beta Was this translation helpful? Give feedback.
-
You can eliminate debugger overhead (especially in 3.12 and later) with specific rules in your launch.json:
This won't stop threads from being suspended during a breakpoint but it will eliminate any tracing code running in certain modules or files. |
Beta Was this translation helpful? Give feedback.
-
Feature Request: Option to disable debugging for specific threads
Description
Currently, debugpy does not provide an option to disable debugging for specific threads. This becomes challenging in multi-threaded applications where certain threads need to run without interruptions caused by breakpoints or debugging overhead.
Proposed Solution
Introduce an API or configuration option (e.g.,
disable_debug_for_thread(thread_id)
or a similar mechanism) to exclude specific threads from being debugged.Use Case
In a multi-threaded application, developers might want to focus debugging only on specific threads while allowing others to execute uninterrupted. This feature would improve debugging efficiency in complex scenarios.
Additional Notes
Beta Was this translation helpful? Give feedback.
All reactions