godotengine / godotengine/godot-vscode-plugin

Can't continue the execution after a failed ``assert``

Open
#945 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

### VS Code version

1.105.1

### Godot Tools VS Code extension version

2.5.1

### System information

Windows 10

### Issue description

When an ``assert`` statement fails while debugging, the debugger correctly stops on it, but pressing Continue or any of the Step buttons does not allow to continue executing further after the assert.

The Godot editor allows to continue the execution in these circumstances, but VSCode doesn't.

### Steps to reproduce

- Write ``assert(false)`` in any function that will be executed (e.g. the ``_ready`` function in your main scene)
- Launch the debugger from VSCode with F5
- The execution will stop at the assert statement. Try to continue executing using the debugger buttons.

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.