godotengine / godot-csharp-vscode

Debugger and utilities for working with Godot C# projects in VSCode
https://marketplace.visualstudio.com/items?itemName=neikeq.godot-csharp-vscode
MIT License
145 stars 27 forks source link

Unable to watch globals #17

Open AntonC9018 opened 3 years ago

AntonC9018 commented 3 years ago

OS/device including version: Windows 7, bug exists for both Godot 3.3.2 and Godot 3.2.3.

Issue description: While debugging an ordinary console C# application I am able to evaluate globals by typing the fully qualified names of the static fields. However, while debugging a Godot application, no global symbols can be watched this way.

The watch window works only with the static variables available in the scope of the current class. E.g. watching a static variable test on the Test class while at a breakpoint in one of the methods of this class works, but only by typing test in the watch window. Test.test still shows the error.

I have made a minimal example that illustrates the issue.

Screenshots of issue: image