godotengine / godotengine/godot-vscode-plugin
Breakpoints inside threads are not triggered properly
- Dominant language
- TypeScript
- Stars
- 2.1k
- Forks
- 257
- PR merge metrics
- No merged PRs in 30d
Description
### Godot version
v4.2.stable.official [46dc27791]
### VS Code version
1.88.1
### Godot Tools VS Code extension version
2.0.0
### System information
Windows 11
### Issue description
When placing a breakpoint in code that runs in a thread, the breakpoint will not be triggered properly. More specifically, the game will pause, but there's no indication of hitting a breakpoint in VSCode and the game will just sit frozen. The breakpoint works in the editor but not in VSCode.
### Steps to reproduce
1. Create a new node
2. Attach the following script:
```
extends Node
var thread := Thread.new()
func _ready():
thread.start(_thread_worker)
func _thread_worker():
while true:
print("Place a breakpoint here")
```
3. Place down a breakpoint on the print statement.
4. Launch game from VSCode.
Contributor guide
Assessment
This issue has not been assessed yet.