godotengine / godotengine/godot-vscode-plugin

Debugger Restart Button does not re-debug current file

Open
#947 0 comments 0 reactions 0 assignees View on GitHub
bug
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.

Image

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.