cmake-tools.nvim icon indicating copy to clipboard operation
cmake-tools.nvim copied to clipboard

:CMakeDebug builds, then quits with no obvious reason

Open minego opened this issue 1 year ago • 2 comments

Bug description When trying to run :CMakeDebug to start debugging a target it properly asks for the target, etc, and then triggers a build if needed but then appears to quit without starting the debugger.

I don't see any obvious way to debug this to determine why it is failing.

Steps to reproduce

I am running a pretty basic setup of neovim with cmake-tools on Linux. I don't know why the debugger isn't working (It was previously, and broke at some point...) But, my bug isn't that it isn't working, but that cmake-tools doesn't provide any details about the failure.

Expected behavior I'd like to see errors logged that I can view with :messages

Screenshots

Environment

  • OS: Linux
  • Desktop environment: N/A
  • Plugins commit hash: c59ac82

Additional context

minego avatar Jan 12 '24 16:01 minego

We just invoke the dap.run function, if there exists errors, I think it will complain. Can you provide more info? Such as a minimal project.

Civitasv avatar Jan 20 '24 12:01 Civitasv

I can confirm that :CMakeDebug works for me.

Try install dap-ui, then after :CMakeDebug failure, open dap ui :lua require("dapui").open() . Usually there's a log of debugger that says the error that you have.

Arniiiii avatar Apr 04 '24 09:04 Arniiiii

Closing it for now, feel free to reopen it if you need further support.

Civitasv avatar May 03 '24 14:05 Civitasv