6

I just switched from windows 10 to arch linux I want to use (Neo)Vim as my code editor I've sitted up autocomplition and Fuzzy finder But I have no idea how to debug in (Neo)Vim

Any helps!

1
  • What are your expectations? Vim in tandem with Make can help you to jump to the locations of compiler errors from the build process, but that is not "debugging" IMHO. If you want step-debugging on the command line, that is usually done in GDB, not in Vim. Please be more specific about your needs. Commented Nov 16, 2021 at 9:30

3 Answers 3

11

For neovim there is nvim-dap which is an implementation of the debugging interface called DAP which vscode uses as well. For c/c++ check this page in nvim-dap's wiki.

Sign up to request clarification or add additional context in comments.

Comments

2

If you use gdb, you can use the in-built debugger plugin TermDebug. This works with both Vim and Neovim and is quite nice for C and C++ debugging.

Comments

1

Until this moment I have just used Neovim/Vim to change some small things in a code on terminal, but I think that installing the Kite plugin can help a little bit while you are coding and also, I found this answer, that has some considerations and possibilities of debuggers for Vim.

Comments

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.