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

:CMakeDebug builds, then quits with no obvious reason #191

Closed
minego opened this issue Jan 12, 2024 · 3 comments
Closed

:CMakeDebug builds, then quits with no obvious reason #191

minego opened this issue Jan 12, 2024 · 3 comments
Labels
bug Something isn't working

Comments

@minego
Copy link
Contributor

minego commented Jan 12, 2024

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 minego added the bug Something isn't working label Jan 12, 2024
@Civitasv
Copy link
Owner

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.

@Gerodote
Copy link

Gerodote commented Apr 4, 2024

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.

@Civitasv
Copy link
Owner

Civitasv commented May 3, 2024

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

@Civitasv Civitasv closed this as completed May 3, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

3 participants