code-debug icon indicating copy to clipboard operation
code-debug copied to clipboard

creation of debug configuration does not work

Open GREAT-DNG opened this issue 2 years ago • 4 comments

The problem is that there is no GDB extension in OpenVSX. How is it solved?

GREAT-DNG avatar Feb 09 '23 02:02 GREAT-DNG

There are multiple GDB extensions on Open-VSX, including this one. There is no difference in the general setup between any vscode installation, you need:

  • vscode installation (this includes VSCodium)
  • a GDB binary for the "target" you want to debug that runs on your local machine (on all GNU/Linux distributions that's commonly only an apt/yum/dnf install or similar away, for Win32 the top results of your favorite search machine for "windows binary gdb" likely help)
  • a debug extension (like this one) to couple both (if you don't have the GDB binary in your PATH, then configure it in your debug configuration using the gdbpath setting)

GitMensch avatar Feb 09 '23 06:02 GitMensch

I have VSCodium and GDB can be accessed via PATH. But when selecting GDB (after pressing F5), nothing happens, launch.json is not generated. What am I doing wrong?

But with the CodeLLDB extension installed, the LLDB item works, which is why I assume that the problem is in the absence of the extension...

GREAT-DNG avatar Feb 10 '23 13:02 GREAT-DNG

It is possible that auto-generation of launch.json via F5 does not work (if I remember right there are two different APIs for that). So: What about creating launch.json on your own? Note: you can use "code" completion with [ctrl]+[space] to have some suggestions (and also copy what is in the README as a start).

GitMensch avatar Feb 10 '23 14:02 GitMensch

I've stumbled over this some days ago. This seems unrelated to VSCodium (and is indeed a bug). To begin with debugging either create launch.json from scratch or - more easy - go to the "run and debug" view, then click on add configuration (you get the same selection, but it works from there).

GitMensch avatar Jun 06 '23 17:06 GitMensch