vim.dap

Integrate the Debug Adapter Protocol in Neovim with nvim-dap and nvim-dap-ui.

4|Updated Sep 25, 2024
One-click install
npx skills add https://github.com/khulnasoft/init.lua --skill vim-dap
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: vim.dap
Source: https://github.com/khulnasoft/init.lua/tree/main/skills/vim.dap
Command: npx skills add https://github.com/khulnasoft/init.lua --skill vim-dap

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Neovim users need a unified and efficient way to debug applications inside the editor; this Skill integrates the Debug Adapter Protocol via nvim-dap and nvim-dap-ui to provide a seamless debugging experience.

Core Features & Use Cases

  • DAP core bindings for common debugging actions (continue, step over, step into, step out, toggle breakpoint, set conditional breakpoint)
  • DAP UI layouts and views via nvim-dap-ui for REPL, stacks, watches, breakpoints, scopes and console
  • Mason integration to manage debug adapters such as delve and to configure custom adapters

Quick Start

Open a Neovim session configured for DAP and start debugging using the established keybindings and UI layouts.

Frequently Asked Questions about vim.dap

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I debug applications in Neovim using the Debug Adapter Protocol?

Debug applications in Neovim using the Debug Adapter Protocol by integrating nvim-dap and nvim-dap-ui. This setup provides core DAP actions like continue, step over, step into, and step out, alongside UI layouts for viewing variables, scopes, and stacks.

Can I manage debug adapters like delve with Mason in Neovim?

Yes, you can manage debug adapters like delve using Mason in Neovim. This integration allows you to install and configure custom adapters, ensuring your DAP workflows are properly supported across different programming languages.

Does nvim-dap-ui support viewing scopes, watches, and breakpoints?

Yes, nvim-dap-ui supports viewing scopes, watches, and breakpoints. It provides dedicated UI layouts for these debugging views, alongside REPL and console panels, to give you a comprehensive debugging interface inside Neovim.

What's the best way to set conditional breakpoints in Neovim?

The best way to set conditional breakpoints in Neovim is through DAP core bindings provided by nvim-dap. These bindings allow you to toggle breakpoints and configure conditions directly during your debugging workflow.

Do I need nvim-dap and nvim-dap-ui to debug across multiple languages in Neovim?

Yes, you need nvim-dap and nvim-dap-ui to debug across multiple languages in Neovim. They work together with Mason to provide a unified DAP workflow, handling both the core debugging actions and the visual UI layouts for a seamless experience.