Open zmrocze opened 1 year ago
Can you provide a screenshot of the button you're clicking to start debugging? Does it run without debugging?
The button: "Run and Debug" section on the left -> "Start debugging (F5)" green play button. Choosing the "(gdb) Launch 1" configuration.
@zmrocze Sorry for the delayed response. I'm not sure what could be going wrong.
@WardenGnaw Do you know what could be going wrong?
I had the same issue and debugger started working again when I downgraded version to 1.6.2.
same here.
[proc] Executing command: gdb --version
Is the last info, then nothing more happens.
As far as I can see, it does not try to start any gdb process after the version check to get the path.
This is because there is an unpatched binary in the extension. Please see https://discourse.nixos.org/t/cant-run-c-debugger-in-vscode/33609/6
I made really good progress on this using strace
I did:
strace -f -s99999 -e trace=clone,execve code --wait .
Then I tried to click the debugger:
[pid 193326] execve("/home/fmzakari/.vscode/extensions/ms-vscode.cpptools-1.20.5-linux-x64/debugAdapters/bin/OpenDebugAD7", ["/home/fmzakari/.vscode/extensions/ms-vscode.cpptools-1.20.5-linux-x64/debugAdapters/bin/OpenDebugAD7"], 0x2aec0357bc00 /* 92 vars */) = 0
[pid 193326] +++ exited with 127 +++
It tries to run a binary OpenDebugAD7
which is not compatible with NixOS :(
This needs to be rebuilt using NixO
Environment
Bug Summary and Steps to Reproduce
Bug Summary:
Launching a c++ debugger from vscode doesn't launch debugger. For a moment the debugging icons show up, but quickly thedDebugger quits doesn't stopping on breakpoints. No error messages show anywhere in vscode console/problems/output.
Steps to reproduce:
launch.json
like below:problems
/output
/debug console
.Debugger Configurations
Debugger Logs
Other Extensions
No response
Additional Information
I'm using nixos so it might be bit weirder with the linker, I've hit problems before when the linker couldn't find something during compilation. BUT here this is irrelevant: 1) I can compile succesfully with these compilers, also from within vscode. 2) there's no indication whatsover from vscode that anything failed.
Versions: