Neovim for Beginners — Debugging using vimspector

Code debugging using the vimspector plugin.

alpha2phi
3 min readFeb 27, 2022
Neovim for Beginners — Debugging using vimspector

Previously we talked about debugging using DAP. In this article, let’s try out vimspector. We use Python as the example but the steps are the same for other languages.

This article is part of the Neovim for Beginners series.

The Neovim configuration files can be found in this repository.

Setup

In the lua/plugins.lua file, add the lines to install the plugin.

Similar to other plugins, we lazy load vimspector when certain commands and functions are triggered. Check out the plugin management article for more details.

Configuration

Create a new file lua/config/vimspector.lua with the following content.

--

--

alpha2phi
alpha2phi

Written by alpha2phi

Software engineer, Data Science and ML practitioner.

Responses (1)