-
-
Notifications
You must be signed in to change notification settings - Fork 9
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
Debugging doesn't work on Windows (CLion limitation) #37
Comments
After some investigation, I've reached the following conclusion:
On VSCode, the common solution to this is to use the vscode C++ tools https://github.com/microsoft/vscode-cpptools, which includes a (proprietary) debug adapter to the Microsoft Visual Studio debugger called However, JetBrains does not support the DAP protocol, but luckily, there is an implementation of it in the LSP4Eclipse project: https://github.com/eclipse/lsp4e/tree/master/org.eclipse.lsp4e.debug/src/org/eclipse/lsp4e/debug Possible solutions:
Unfortunately, i don't have enough free time to implement the second solution, as writing a debug adapter for IntelliJ in an extremely tedious task, and I don't feel like burning most of my free time on a feature that I personally will never use (as I don't use Windows for development). Personally, I would just wait until the Zig team fixes the debug symbol generation on their side, but if anybody is motivated enough to take on this task, please let me know. |
Good news: LSP4J (used by ZigBrains' ZLS connector) already includes a DAP adapter, so a full port of the LSP4E adapter is NOT required. This might be doable in a reasonable time frame after all. |
Debugging should be working now in 13.0.0 with the MSVC debugger. See the plugin description for how to set that up. |
It doesn't recognize MSVC debugger for me on Windows in CLion. I've installed VS 2022 with C++ development checked. When selecting MSVC, it says "Need to be downloaded", when I click on the hyperlink on "downloaded", it does nothing. Download button on error popup when starting debugger does nothing either. vsdbg.exe, cl.exe is in the PATH as well. Any ideas what the issue might be? In ZigBrains code I saw for MSVC debugger the cli argument |
By looking at the code, I've found copying the vsdbg.exe installed by vscode to: But when running the MSVC debugger, I get Edit 1: vscode with c++ extension installed, copied entire folder containing vsdbg.exe from vscode to zigbrains path explained above. Now there is no error at all, but debugging just doesn't work. Edit 2: With the steps on edit 1, I got it working: I had Edit 3: Viewing variable values with hover or evaluating expression doesn't seem to work, although watch and variables window does work. |
Running debug on windows is useless, see video: https://imgur.com/a/ISjXXdt
The text was updated successfully, but these errors were encountered: