Is it possible for nvim-dap to debug a neovim plugin currently in use? #782
Replies: 1 comment 1 reply
-
You can debug neovim-lua with https://github.com/jbyuki/one-small-step-for-vimkind, but you'll need 2 neovim instances, one where you set the breakpoints and step through the code, and one where you use the plugin you want to debug, to trigger the breakpoints. Once a breakpoint is hit, the other instance will lock/freeze until you step around/continue. I have a special adapter configuration that spawns a new neovim instance in a new terminal to make the workflow a bit eaiser. Short-demo: recording.mp4Configuration: https://github.com/mfussenegger/dotfiles/blob/2428fc92505bb5aa5c48d475f1f7a23cbf64fc00/vim/.config/nvim/ftplugin/lua.lua#L3-L43 |
Beta Was this translation helpful? Give feedback.
-
Hello all,
I am currently using the Packer package manager and I have cloned the repository to a plugin locally and loaded it into Packer like
~/git/PluginRepo
. I am trying to track down a bug inside this plugin but want to know if nvim-dap can attach to this plugin some how?Beta Was this translation helpful? Give feedback.
All reactions