cmake-tools.nvim
cmake-tools.nvim copied to clipboard
:CMakeDebug builds, then quits with no obvious reason
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
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.
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.
Closing it for now, feel free to reopen it if you need further support.