dreamsofcode-io / neovim-cpp

62 stars 24 forks source link

nvim dap rejects breakpoints and hence nvim-dap-ui closes instantly #2

Closed adityababerwal closed 10 months ago

adityababerwal commented 10 months ago

I compile the file with g++ -g -O3 copying.cpp -o copying and have breakpoints set as: image After that I run :DapContinue with <leader>dr, the nvim-dap-ui opens and closes in a flash. I have to run :lua require('dapui').toggle() to see what happened: image The debugger does not stop at the breakpoints. Also the 'R' at place of breakpoints, I read that it means the breakpoint was rejected by debugger. There are no steps to reproduce this error, I just git cloned this repo in my nvim config. I have installed clangd, clang-format and codelldb with mason.

gokulp01 commented 9 months ago

So, from what I understood, if your code compiles without any errors, you can use the debugger without any problems.

adityababerwal commented 9 months ago

It does compile without any errors. Here is a video of my issue:

https://github.com/dreamsofcode-io/neovim-cpp/assets/106467696/f0d523cd-0007-442b-9e72-9da064770209