
DebugMCP
by microsoft·★ 349·综合分 53
DebugMCP 赋能 AI 代理在 VS Code 中进行代码调试,支持断点、单步执行和变量检查。
概述
DebugMCP 是微软开发的一个全面的 MCP 服务器,为 AI 编程代理提供对 VS Code 调试器的完全控制。它支持通过多种工具进行自主调试,包括设置断点、单步执行代码、检查变量和评估表达式,适用于多种编程语言。该扩展在本地运行,无需配置,可与任何兼容的 AI 助手无缝协作,包括 GitHub Copilot、Cursor、Cline 等。
试试问 AI
装完之后,这里有 5 个你可以让 AI 做的事:
什么时候选它
当您需要AI代理在VS Code中执行实际调试操作,包括设置断点、单步执行代码和检查变量时,选择DebugMCP。
什么时候不要选它
如果您需要在VS Code之外的调试功能,或者需要与非基于MCP的AI助手集成,则应避免使用。
此 server 暴露的工具
从 README 抽取出 12 个工具get_debug_instructionsGet the debugging guide with best practices and workflow instructions
start_debuggingstart_debugging(fileFullPath, workingDirectory, testName?, configurationName?)Start a debug session for a source code file
stop_debuggingStop the current debug session
step_overExecute the next line (step over function calls)
step_intoStep into function calls
step_outStep out of the current function
continue_executionContinue until next breakpoint
restart_debuggingRestart the current debug session
add_breakpointadd_breakpoint(fileFullPath, lineContent)Add a breakpoint at a specific line
remove_breakpointremove_breakpoint(fileFullPath, line)Remove a breakpoint from a specific line
clear_all_breakpointsRemove all breakpoints at once
get_variables_valuesget_variables_values(scope?)Get variables and their values at current execution point
可对比工具
安装
安装
**选项1:VS Code 市场**
- 访问:[https://marketplace.visualstudio.com/items?itemName=ozzafar.debugmcpextension](https://marketplace.visualstudio.com/items?itemName=ozzafar.debugmcpextension)
- 点击"安装"
**选项2:直接链接**
- 在浏览器中复制并粘贴:
vscode:extension/ozzafar.debugmcpextension
**选项3:在 VS Code 内安装**
- 打开 VS Code
- 进入扩展(Ctrl+Shift+X / Cmd+Shift+X)
- 搜索"DebugMCP"
- 点击安装
**手动 MCP 服务器注册** 添加到您的 AI 助手配置中:
{
"mcpServers": {
"debugmcp": {
"type": "http",
"url": "http://localhost:3001/mcp",
"description": "DebugMCP - AI 调试助手"
}
}
}FAQ
- 支持哪些 AI 助手?
- DebugMCP 支持任何兼容的 AI 助手,包括 GitHub Copilot、GitHub Copilot CLI、Cline、Cursor、Codex、Windsurf、Roo Code、Antigravity 等。
- 支持哪些编程语言?
- DebugMCP 支持 Python、JavaScript/TypeScript、Java、C#、C++、Go、Rust、PHP 和 Ruby 等语言,需要安装相应的 VS Code 扩展。
DebugMCP 对比
最后更新于 · 由 README + GitHub 公开数据自动生成。