-
-
Notifications
You must be signed in to change notification settings - Fork 168
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
The debugger doesn't show any data #699
Comments
Can confirm the same issue. Locals, members and globals are all empty. Same specs as the OP; Godot 4.3, Godot Tools 2.1.0, VSCode 1.92.2, Sonoma 14.6.1. |
Share your |
I use the default {
"version": "0.2.0",
"configurations": [
{
"name": "GDScript Godot",
"type": "godot",
"request": "launch",
}
]
} |
I have the same |
|
@Calinou As far as I can see, that issue was caused by Headless LSP being on, which isn't the case here. |
In my case, the problem is present with or without Headless LSP |
I'm experiencing the same issue with 4.3, not using any extra launch options: {
// Use IntelliSense to learn about possible attributes.
// Hover to view descriptions of existing attributes.
// For more information, visit: https://go.microsoft.com/fwlink/?linkid=830387
"version": "0.2.0",
"configurations": [
{
"name": "GDScript Godot",
"type": "godot",
"request": "launch",
"project": "${workspaceFolder}",
"address": "127.0.0.1",
"port": 6007,
}
]
} I'm using VS Codium on x64 Linux if that helps narrow it down any. |
Another thing I noted, it seems to hang on |
Godot version: 4.3 I have the same issue on one project, but it works on another. I see an extension host errors when running project with issue. Run without breakpoints. Value is always the same:
Run with breakpoint. Value depends on breakpoint.
Not sure how to debug it further at this point. |
Just checked and I have the same error as @n4nn31355. This is when a breakpoint is hit:
A bit more. The issue seems to occur because it seems that we are exhausting the buffer while reading from Array values (
|
The problem seems to appear when using typed arrays with built-in types. |
Code to reproduce: class_name MainLevel extends Node3D
func _ready() -> void:
Performance.add_custom_monitor("custom/the/test", _get_calculation_performance)
func _unhandled_input(event: InputEvent) -> void:
if event.is_action_pressed("ui_cancel"):
_register_monitor()
func _register_monitor() -> void:
Performance.add_custom_monitor("custom/the/test_more", _get_calculation_performance)
func _get_calculation_performance() -> float:
return 0 |
I confirm the problem is when you use typed arrays. Repro: extends Node2D
var x := 1
var arr: Array[int] = []
func _ready() -> void:
print(x) With breakpoint on Changing |
Having the same issue, and would love to get some traction on this issue, as I'd love to have the debugger working again on 4.3. Is there a particular maintainer we should ping in regards to the PR by @n4nn31355? |
It's just me, and I've been too busy to look into these recently. There's multiple debugger related complaints open right now and it's quite likely they're all related under the hood, but unfortunately that also means that it's possibly a multi-day day job to unravel what's going on. I might be able to look at it this weekend, but obviously I can't promise anything. |
Hi @DaelonSuzuka, I appreciate the response and I'm grateful for the time you spend maintaining this codebase! While it would be awesome to have the debugger working again, please don't feel any pressure to do so if you don't have the time! |
Good news, it doesn't die when decoding typed arrays now. It's gonna take... a lot of work to carry that information through to VSCode's debugger interface, but this should at least keep the debugger from blowing up. @Calinou I'm gonna get this fix plus a couple others cleaned up and merged, can you publish a hotfix later today maybe? |
Any chance on getting that hotfix deployed? |
|
@DaelonSuzuka The problem seems to still occur on
|
@umutseven92 I can't reproduce it on my end, can you share the variable declaration that's causing the failure? |
I believe I tracked down the remaining issue with typed arrays. I put up a PR for it here: #731. |
Godot version
4.3
VS Code version
1.92.2
Godot Tools VS Code extension version
2.1.0
System information
macOS Sonoma 14.6.1
Issue description
The debugger doesn't show any data (locals, members or globals) and watches are also not working. It is also impossible to update the list of watches while the debugger is running.
Steps to reproduce
The text was updated successfully, but these errors were encountered: