名称: 调试适配器协议 描述: 用于实现调试适配器协议以集成调试器的专业技能 类别: 工具链 允许使用的工具:
- 读取
- 写入
- 编辑
- 全局匹配
- 文本搜索
- Bash
调试适配器协议技能
概述
用于实现调试适配器协议以集成调试器的专业技能。
能力
- 实现DAP消息处理
- 实现断点管理(行断点、条件断点、函数断点)
- 实现单步调试(步入、步出、步过、继续)
- 实现堆栈跟踪检索
- 实现变量检查和监视表达式
- 在调试上下文中实现表达式求值
- 处理启动与附加配置
- 实现异常断点
- 支持多线程调试
目标进程
- debugger-adapter-development.js
- lsp-server-implementation.js
- interpreter-implementation.js
- bytecode-vm-implementation.js
依赖项
- DAP规范
- vscode-debugadapter库
使用指南
- 消息处理:实现健壮的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" }
}
}
}