godotengine / godotengine/godot-vscode-plugin
Debugger Restart Button does not re-debug current file
- Dominant language
- TypeScript
- Stars
- 2.1k
- Forks
- 257
- PR merge metrics
- No merged PRs in 30d
Description
### Godot version
4.5.1.stable
### VS Code version
1.100.1
### Godot Tools VS Code extension version
2.5.1
### System information
Windows 10
### Issue description
After clicking the "Debug Current File" button, the debugger runs as expected. However, when I click the "restart" button in the debug floating panel, the debugger does not re-debug the current file. Instead, it starts debugging the main scene defined in the project settings.
Although the workaround in issue [#349, creating a "Launch Current Scene" configuration](https://github.com/godotengine/godot-vscode-plugin/issues/349) fixes the restart button, it requires switching configurations manually. This undermines the quick and convenient workflow that the "Debug Current File" button is meant to provide.
### Steps to reproduce
1. In the VSCode editor, open a Godot script file that is not the main scene (e.g., a sub-scene or a tool script) and
click the "Debug Current File" button in the top-right corner.
2. Once the debugger has started and attached to the current file, click the "Restart" button (the circular arrow icon) in the floating Debug panel.
Contributor guide
Assessment
This issue has not been assessed yet.