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

Visual code debugger adapter immediately dies when used with vscode-hack debugger extension #125

Open
ajayvohra2005 opened this issue Sep 11, 2021 · 1 comment

Comments

@ajayvohra2005
Copy link

I am using the vscode-hack extension on visual code studio on macOS Big Sur. My settings.json includes following launch configuration:

"configurations": [
{
"name": "HHVM: Run Script",
"type": "hhvm",
"request": "launch",
"script": "${file}",
"hhvmPath": "/usr/local/bin/hhvm",
"hhvmArgs": ["--mode", "vsdebug", "--vsDebugPort", 8999],
"cwd":"${workspaceFolder}"
}
]

When I try to debug a Hack script in Visual code debugger, Visual code debugger adapter launches and immediately dies. I have verified launching hhvm with the same args from command line, and it works fine. I am following the instructions here https://github.com/slackhq/vscode-hack/blob/master/docs/debugging.md.

vscode-hack extension version:
2.10.0

Visual Code version:
Version: 1.60.0
Commit: e7d7e9a9348e6a8cc8c03f877d39cb72e5dfb1ff
OS: Darwin x64 20.6.0

Os version:
macOS Big Sur 11.5.2

@ajayvohra2005
Copy link
Author

After trying around different combinations of configurations and vscode-hack extension, the following combination of the vscode-hack version and configuration works, so it appears this issue may have started with vscode-hack extension version 2.8.0.

vscode-hack version: 2.7.1

configuration:

{
                "name": "HHVM: Run Script",
                "type": "hhvm",
                "request": "launch",
                "script": "${file}"
},

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

1 participant