Neovim for Beginners — Debugging using vimspector
This article is part of the Neovim for Beginners series.
The Neovim configuration files can be found in this repository.
lua/plugins.lua file, add the lines to install the plugin.
- In the
debuggersfunction, we specify the debug adapters. Currently, we only configure
debugpywhich is the debug adapter for Python. Check out the list of support languages to add adapters for those languages you want.
vimspectorto work, we need to create a project debug profile and the file name is called
generate_debug_profilefunction generates this file for the Python project.
- We can also use custom snippets to generate the debug profile. I will talk about this in a later article.
toggle_human_modefunction turns on and off HUMAN mode, which uses the function keys for debugging.
Let’s add several convenient key mappings to the