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

creation of debug configuration does not work #393

Open
GREAT-DNG opened this issue Feb 9, 2023 · 4 comments
Open

creation of debug configuration does not work #393

GREAT-DNG opened this issue Feb 9, 2023 · 4 comments

Comments

@GREAT-DNG
Copy link

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

@GitMensch
Copy link
Collaborator

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)

@GREAT-DNG
Copy link
Author

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...

@GitMensch
Copy link
Collaborator

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
Copy link
Collaborator

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 GitMensch changed the title How to use debugging via GDB in VSCodium? creation of debug configuration does not work Nov 5, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants