Skip to content
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

[vsdebug] "Invalid variable attributes" error when trying to inspect variables during debugging #8668

Open
PranayAgarwal opened this issue Mar 2, 2020 · 1 comment

Comments

@PranayAgarwal
Copy link

Describe the bug
VS Code debugger shows "Invalid variable attributes" in the variables panel when stopped at a breakpoint.

image

This is happening because the Debug Adapter Protocol requires a variablesReference field in the Variable type sent by the debug server (https://microsoft.github.io/debug-adapter-protocol/specification#Types_Variable), which HHVM currently doesn't return. It is likely that VS Code started enforcing this field in a recent version, which led to this behavior.

I have fixed it on the VS Code extension side by adding an override to the "variables" response (slackhq/vscode-hack#92), but it should ideally be fixed on the debug server side.

@fredemmott
Copy link
Contributor

Probably fixed by 1b6af33 , in 4.45+; definitely backport-friendly

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants