Debug Adapter Protocol
Included with Lifetime
$97 forever
Expert skill for implementing Debug Adapter Protocol for debugger integration
Tooling
What this skill does
# Debug Adapter Protocol Skill
## Overview
Expert skill for implementing Debug Adapter Protocol for debugger integration.
## Capabilities
- Implement DAP message handling
- Implement breakpoint management (line, conditional, function)
- Implement stepping (step in/out/over, continue)
- Implement stack trace retrieval
- Implement variable inspection and watch expressions
- Implement expression evaluation in debug context
- Handle launch vs attach configurations
- Implement exception breakpoints
- Support multi-threaded debugging
## Target Processes
- debugger-adapter-development.js
- lsp-server-implementation.js
- interpreter-implementation.js
- bytecode-vm-implementation.js
## Dependencies
- DAP specification
- vscode-debugadapter libraries
## Usage Guidelines
1. **Message Handling**: Implement robust JSON message parsing and validation
2. **Breakpoints**: Support line, conditional, and function breakpoints
3. **Stepping**: Implement all stepping modes with correct semantics
4. **Variables**: Implement lazy variable expansion for performance
5. **Evaluation**: Support expression evaluation in stopped state
## Output Schema
```json
{
"type": "object",
"properties": {
"capabilities": {
"type": "array",
"items": { "type": "string" }
},
"breakpointTypes": {
"type": "array",
"items": { "type": "string" }
},
"launchModes": {
"type": "array",
"items": { "type": "string" }
},
"generatedFiles": {
"type": "array",
"items": { "type": "string" }
}
}
}
```
Related in Tooling
Language Server Protocol
IncludedExpert skill for implementing Language Server Protocol servers with full IDE feature support
Tooling
REPL Development
IncludedExpert skill for building interactive REPLs with rich editing and evaluation features
Tooling
Source Maps
IncludedExpert skill for generating and consuming source maps for debugging compiled code
Tooling
Tree-sitter
IncludedExpert skill for creating tree-sitter grammars for incremental parsing and syntax highlighting
Tooling