godotengine / godotengine/godot-vscode-plugin

variables values don't show in debug mode

Open
#432 28 comments 4 reactions 0 assignees View on GitHub
bug confirmed debugger
Dominant language
TypeScript
Stars
2.1k
Forks
257
PR merge metrics
No merged PRs in 30d

Description

___

***Bugsquad note:** This issue has been confirmed several times already. No need to confirm it further.*

___

### Godot version

v3.4.4.stable.official.419e713a2

### VS Code version

1.72.2

### Godot Tools VS Code extension version

1.3.1

### System information

Windows 11, wsl2 Ubuntu

### Issue description

I downloaded the plugin in vscode marketplace which is connected to wsl in remote mode. I correctly put the absolute path of my godot installation in wsl, which allows me to run my project in debug mode from vscode.
The editor is well connected to the language model. Hovering the godot elements gives me access to their documentation in a floating winow.
Everything seems to work normally except some features in debug mode:
- The first breakpoint works fine but as soon as I want to continue I get the impression that it does not continue execution.
- When I'm stopped at the first breakpoint, the call history is correctly displayed, but the variables don't load and I don't have access to the active scene tree. When I try to access the variables in the debug console, the variables have `null` values. (edit : I just noticed that variables contents are sometimes available when an error occurs instead of stopping at a breakpoint)

![image](https://user-images.githubusercontent.com/23617468/197355952-f2f8cc76-87da-4e36-b8f3-525e52939a3d.png)

### Steps to reproduce

Launch the project in debug mode from vscode and wait for the execution to stop at a breakpoint

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.