Version: 1.102.2 (user setup)
Commit: c306e94f98122556ca081f527b466015e1bc37b0
Date: 2025-07-22T12:15:48.520Z
Electron: 35.6.0
ElectronBuildId: 11847422
Chromium: 134.0.6998.205
Node.js: 22.15.1
V8: 13.4.114.21-electron.0
OS: Windows_NT x64 10.0.26100
Python Version: 3.8.10 (tags/v3.8.10:3d8993a, May 3 2021, 11:34:34) [MSC v.1928 32 bit (Intel)]
Platform: Windows-10-10.0.26100-SP0
Description
When debugging Python code that uses callback methods (particularly firmware waypoint callbacks[ C++ layer call back]), VS Code's Python debugger intermittently creates "Dummy-XX" threads (e.g., "Dummy-18") in the call stack. Once this happens, the debugger becomes unresponsive and cannot continue execution.
- Set up Python code with callback methods that are triggered asynchronously
- Set a breakpoint inside the callback method
- Run the debugger and wait for the callback to be triggered
- When the breakpoint hits, observe the call stack
- Attempt to continue execution (F5) or step through code (F10/F11)
Expected Behavior
- Debugger should maintain proper thread context
- "Continue" and "Step" operations should work normally
- Call stack should show actual thread names, not "Dummy-XX"
Actual Behavior
- Call stack shows "Dummy-18" (or similar) instead of real thread name
- Debugger becomes unresponsive to continue/step commands
- Sometimes works once, then fails on subsequent attempts
- Issue is intermittent but reproducible
Debugging Information
When the issue occurs:
- Thread name changes from normal name to "Dummy-XX"
- Thread ID may become None or invalid
- Debugger toolbar buttons become unresponsive
- Debug console shows thread context loss
This issue severely impacts debugging of:
-
Firmware validation code with waypoint callbacks
-
Event-driven applications with async callbacks
-
Any code using threading with callback patterns
-
Real-time systems debugging
-
Issue is more pronounced with firmware debugging scenarios
-
Problem appears to be related to VS Code's thread tracking mechanism
-
Other Python IDEs (Wing IDE, PyCharm) handle similar scenarios without issues
-
Issue may be related to how VS Code handles callback methods in different thread contexts
-
Similar to threading debugging issues reported in other VS Code Python debugging scenarios
-
May be related to DAP (Debug Adapter Protocol) thread handling
VS Code's Python debugger should:
- Maintain proper thread context for callback methods
- Provide more robust thread tracking for asynchronous operations
- Implement better recovery mechanisms when thread context is lost
- Add debugging options for callback/waypoint heavy applications
Note: This issue significantly impacts productivity for firmware and embedded systems developers who rely heavily on waypoint/callback debugging patterns.
Version: 1.102.2 (user setup)
Commit: c306e94f98122556ca081f527b466015e1bc37b0
Date: 2025-07-22T12:15:48.520Z
Electron: 35.6.0
ElectronBuildId: 11847422
Chromium: 134.0.6998.205
Node.js: 22.15.1
V8: 13.4.114.21-electron.0
OS: Windows_NT x64 10.0.26100
Python Version: 3.8.10 (tags/v3.8.10:3d8993a, May 3 2021, 11:34:34) [MSC v.1928 32 bit (Intel)]
Platform: Windows-10-10.0.26100-SP0
Description
When debugging Python code that uses callback methods (particularly firmware waypoint callbacks[ C++ layer call back]), VS Code's Python debugger intermittently creates "Dummy-XX" threads (e.g., "Dummy-18") in the call stack. Once this happens, the debugger becomes unresponsive and cannot continue execution.
Expected Behavior
Actual Behavior
Debugging Information
When the issue occurs:
This issue severely impacts debugging of:
Firmware validation code with waypoint callbacks
Event-driven applications with async callbacks
Any code using threading with callback patterns
Real-time systems debugging
Issue is more pronounced with firmware debugging scenarios
Problem appears to be related to VS Code's thread tracking mechanism
Other Python IDEs (Wing IDE, PyCharm) handle similar scenarios without issues
Issue may be related to how VS Code handles callback methods in different thread contexts
Similar to threading debugging issues reported in other VS Code Python debugging scenarios
May be related to DAP (Debug Adapter Protocol) thread handling
VS Code's Python debugger should:
Note: This issue significantly impacts productivity for firmware and embedded systems developers who rely heavily on waypoint/callback debugging patterns.