godot-vscode-plugin
godot-vscode-plugin copied to clipboard
While debugging, the inspector panel stays empty
Hi there,
I found out yesterday that I can inspect the active scene tree of a running godot process. If I play the scene from the godot editor directly I can see everything in the "remote" scene tree, but I noticed that if I try to do the same from Visual Studio Code I can see the active scene tree, but the inspector is always empty, even after clicking on the "refresh" button.
The debugger works, and as you can see in the screenshot the active tree is listed (and seems correct as far as I can tell). Any idea what could be the issue?
Same here. I can't even see the scene tree in VS Code. The refresh button does nothing and as far as I can tell there is no error reported in the console output.
I tried tcp and websockets.
@dgellow There's an Eye icon on each node which you need to click on to have it open the inspector. It will otherwise be empty. Or is it empty even if you do click on them?
@jsbeckr Can you try the following version? It includes some merged pull requests that may have fixed those issues, but I guess I'm not too sure what might be causing it as I can't recreate the issue on this end. godot-tools-custom.zip
@Razoric480 Active Scene Tree, Inspector and Breakpoints are working now. I just uninstalled the custom version and installed the official extension again and it works as well.
I restarted my MacBook so I think that fixed the issue. Maybe it has something to do with my VPN client that I use for work or something. I will try to reproduce the issue, maybe that helps us to diagnose the problem better.
Anyway thanks for your help and the awesome extension of course! 👍
@Razoric480 Ok, it's becoming weird. First to answer your question, before opening this issue I tried to click on the eye icon 👁️ but that didn't do anything. Now the weird part: I just tried right now to debug from Visual Studio Code, using the extension, and I don't have the Active Scene Tree anymore 🙀.
Breakpoints and debug logs seem to work well though.
And finally a good news:
I downloaded and tried your custom version of the extension, and it seems to work great, I can see both the Active Scene Tree and the Inspector 🎉.
@Razoric480 Is the custom extension you shared in this thread based on current master, or is it from your own branch? If it is based on master, would you mind create a new release?
@dgellow The custom version is a version that has my two pull requests currently pending merged in as patches. I just manually merged them in and compiled the VSIX.
So once they are merged into master and the official one's version updated, then this should be fixed.
@Calinou, could you merge mentioned PR-s?
Hello. I have the same issue. The custom version fixed the active scene tree and the inspector, but the breakpoints are completly ignored. Everything else is working fine.
(btw thank you for your answers @Razoric480 !)
Everything works out of the box for me. Could you send a minimal reproduction project so I can investigate futher or tell us if the issue is no longer present on the lastest version of the extension ?
This issue hasn't been updated in a while so maybe it was fixed eventually, but it seems not to work for me either now, using Godot v4.0.2.stable.flathub [7a0977ce2]
.
Both the scene tree and inspector are empty for me although I am able to set breakpoints and step through code, etc.
Perhaps related to some of the 4.0 issues mentioned in #389 ?
Anyone else still struggling with this?
I'm able to set breakpoints, set variables to watch, but the scene tree and inspector remain empty.
PS: I did have to add "debugServer": 6006
to the launch.json
file to get the debugger to work properly.
I also double checked all of the godot-tools plugin settings, and nearly all editor settings in the Godot Engine, but none of it seemed to fix the issue.
- MacOS Ventura 13.4
- Godot Engine v4.0.3.stable.official [5222a99f5]
- godot-tools v1.3.1
I'm also running into the issue of the debugger not displaying any data Pop!_OS 22.04 LTS x86_64 Godot Engine v4.2.stable.official [46dc27791] Godot Tools v1.3.1
I'm also running into the issue of the debugger not displaying any data Pop!_OS 22.04 LTS x86_64 Godot Engine v4.2.stable.official [46dc27791] Godot Tools v1.3.1
Same issue here
- vscode extension version: v1.3.1
- Godot version: v4.2.1.stable.official [b09f793f5]
- OS: Kubuntu 23.10
I'm also running into the issue of the debugger not displaying any data Pop!_OS 22.04 LTS x86_64 Godot Engine v4.2.stable.official [46dc27791] Godot Tools v1.3.1
Same issue here
- vscode extension version: v1.3.1
- Godot version: v4.2.1.stable.official [b09f793f5]
- OS: Kubuntu 23.10
Same issue here
vscode extension version: v2.0.0 Godot version: v4.2.1.stable.official [b09f793f5] OS: MacOS 14.4.1