-
Notifications
You must be signed in to change notification settings - Fork 44
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
Using of hello_debugger with VSCode on Windows #12
Comments
Hi @Elias-Johansson, I'm sorry you're having difficulties running the example. Unfortunately I don't currently have a Windows machine to hand to test this on. I will have one next week, so I will try testing then. Before then, do you get any useful information when enabling the Many thanks, |
I tried to enable the definition of the |
Ben, I manually changed "program": "hello_debugger" to "program": "hello_debugger.exe" in .vscode\extensions\google.cppdap-example-hello_debugger-1.0.0\package.json. Subsequently, I disabled and enabled google.cppdap-example-hello_debugger-1.0.0 again in VSCode extensions. However, I cannot step over and toggle breakpoints. As far as I understand, hello_debugger generates the synthetic file source. Is it possible to interactively debug the synthetic file source as a usual file, which is opened in VSCode?
|
Hi Elias, Yes, the executable extension is probably quite important. Good find. :) The log file suggests that the debugger hasn't responded to the
Yes, that is the intended behaviour of the example. When I make it back home, I'll try and reproduce on my Windows box. Cheers, |
Hi Ben,
Yes, it adds the following: "Content-Length: 79 {"command":"disconnect","arguments":{"restart":false},"type":"request","seq":2}" I've attached the updated log file.
Thanks. -- |
Without this the vscode extension cannot find the example executable, and the example fails. Also use $USERPROFILE instead of $HOME for finding the `.vscode` user directory for installing the extension. Bug: google#12
`std::atomic<bool>` does not default initialize to `false`. Bug: google#12
On windows text mode for these plays with newline escape sequences, breaking the ContextStream encoding. Fixes: google#12
Without this the vscode extension cannot find the example executable, and the example fails. Also use $USERPROFILE instead of $HOME for finding the `.vscode` user directory for installing the extension. Bug: google#12
`std::atomic<bool>` does not default initialize to `false`. Bug: google#12
On windows text mode for these plays with newline escape sequences, breaking the ContextStream encoding. Fixes: google#12
Hi @Elias-Johansson, Thank you for your patience. Lots was broken - my apologies. I've created PR #13 that should fix your issues. It's also worth mentioning you'll need to enable VSCode's Please let me know how you get on. Thanks, |
Without this the vscode extension cannot find the example executable, and the example fails. Also use $USERPROFILE instead of $HOME for finding the `.vscode` user directory for installing the extension. Bug: #12
`std::atomic<bool>` does not default initialize to `false`. Bug: #12
Hi Ben, Everything works fine. Thanks for the quick response and fix! --
|
Hello Ben,
thank you very much for your project! Could you clarify whether it is possible to use hello_debugger with VSCode on Windows? It built and installed without errors. So I can find google.cppdap-example-hello_debugger-1.0.0 in my .vscode\extensions and VSCode shows that google.cppdap-example-hello_debugger-1.0.0 is enabled. My launch.json looks like this:
{
"version": "0.2.0",
"configurations": [
{
"name": "cppdap: hello_debugger",
"type": "hello_debugger",
"request": "launch"
}
]
}
However, when I choose "cppdap: hello_debugger" and start debugging, nothing happens. Log (Window) reports the following errror:
[2020-01-17 15:24:36.857] [renderer1] [error] timeout after 500 ms: Error: timeout after 500 ms
at t.RawDebugSession.handleErrorResponse (file:///C:/Users/Elias/AppData/Local/Programs/Microsoft VS Code/resources/app/out/vs/workbench/workbench.desktop.main.js:2821:819)
at file:///C:/Users/Elias/AppData/Local/Programs/Microsoft VS Code/resources/app/out/vs/workbench/workbench.desktop.main.js:2821:250
at async t.RawDebugSession.shutdown (file:///C:/Users/Elias/AppData/Local/Programs/Microsoft VS Code/resources/app/out/vs/workbench/workbench.desktop.main.js:2819:336)
The text was updated successfully, but these errors were encountered: