Our great sponsors
-
InfluxDB
Power Real-Time Data Analytics at Scale. Get real-time insights from all types of time series data with InfluxDB. Ingest, query, and analyze billions of data points in real-time with unbounded cardinality.
-
nvim-dap-go
An extension for nvim-dap providing configurations for launching go debugger (delve) and debugging individual tests
https://github.com/mfussenegger/nvim-dap is the baseline tool for debugging programs. You can't use it by itself, you need a separate plugin for your programming language of choice (nvim-dap implements a specific debugging 'protocol' meaning that plugins can support debugging by implementing certain functions).
So in my case I use https://github.com/leoluz/nvim-dap-go (which itself calls out to the CLI tool https://github.com/go-delve/delve).
So in my case I use https://github.com/leoluz/nvim-dap-go (which itself calls out to the CLI tool https://github.com/go-delve/delve).
So I install a UI plugin https://github.com/rcarriga/nvim-dap-ui which helps visualise the CLI output into separate windows. I typically trigger the UI to open and then trigger require('dap').continue() to start debugging.
Lastly, I use a plugin that at runtime evaluates the state of your program (e.g. what value is assigned to this variable? Which is handy especially when you're stepping through a loop -- see screenshots in linked repo) https://github.com/theHamsta/nvim-dap-virtual-text