4

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!

Sobhy Rzk
  • 61
  • 1
  • 3
  • 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. – DevSolar Nov 16 '21 at 09:30

3 Answers3

7

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.

cryptolake
  • 71
  • 1
  • 5
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.

Dharman
  • 30,962
  • 25
  • 85
  • 135
1

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.

paulplusx
  • 213
  • 4
  • 13