Replies: 2 comments 1 reply
-
Just my 2 cents, you set a break at main(), you "r"un your program and when gdb hits the break you press again "r"un instead of "c"ontinue. |
Beta Was this translation helpful? Give feedback.
-
Thank you for your response! However, even when I hit c instead of r, I got "No stopped debug connection". Also, I need to specify the arguments to the program ("-f ..."). If I run with those arguments from the begining, it runs the simulation without allowing me to set breakpoints. If I set the breakpoints beforehand, it does not allows me to run the simulation. In order to avoid flooding doom, do you think this is a cpp/dape-related problem instead of doom? |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
I confirm that...
I searched the FAQ, issue tracker, discussions board, documentation, and wiki, and did not find an answer to my question.
Any discussions with or conclusions derived from the use of LLMs will be omitted from my question.
What is your question?
Hi everyone,
I have a question about how to use dap-mode in doom-emacs for cpp. As a context, I am not a programmer and I am using a project that relies on cpp (named LSD). In order to debug my code, I use gdb as follows:
gdb ./lsdDebug
lsdDebug is the executable compiled using debugger flags. Inside gdb, I set breakpoints for my source files (.h) and run as follows:
run -f ./path/to/configfile
And everything works as expected. However, I would like to be able to run it inside Emacs and be able to navigate through the source code. As I am using doom-emacs, I enabled the debugger module in my init file without the +lsp flag.
For the adapter, I am using the following configuration:
After that, I can toggle a breakpoint and start to run the program and the simulation starts. However, when it hits the breakpoint, I get the following:
Since I am not a programmer, I am not sure if the issue is related with doom, dape, or with my code. As I can use gdb normally, I am assuming that I am setting the dap configuration wrong, but I have not clue what could be wrong. In addition, I have no idea if I should open an issue on doom or on dape-mode repositories.
Does anyone have a clue how to debug my debugger issue? :)
System information
https://pastebin.com/GQcq9KUF
Beta Was this translation helpful? Give feedback.
All reactions