MCP Catalogs
首页DebugMCP screenshot

DebugMCP

by microsoft·349·综合分 53

DebugMCP 赋能 AI 代理在 VS Code 中进行代码调试,支持断点、单步执行和变量检查。

developer-toolsai-llmproductivity
29
Forks
20
活跃 Issue
本月
最近提交
2 天前
收录于

概述

DebugMCP 是微软开发的一个全面的 MCP 服务器,为 AI 编程代理提供对 VS Code 调试器的完全控制。它支持通过多种工具进行自主调试,包括设置断点、单步执行代码、检查变量和评估表达式,适用于多种编程语言。该扩展在本地运行,无需配置,可与任何兼容的 AI 助手无缝协作,包括 GitHub Copilot、Cursor、Cline 等。

试试问 AI

装完之后,这里有 5 个你可以让 AI 做的事:

:AI 代理通过设置断点和单步执行来自主调试代码
:在运行时评估表达式和检查变量以诊断问题
:在多种编程语言中启动和管理调试会话
:支持哪些 AI 助手?
:支持哪些编程语言?

什么时候选它

当您需要AI代理在VS Code中执行实际调试操作,包括设置断点、单步执行代码和检查变量时,选择DebugMCP。

什么时候不要选它

如果您需要在VS Code之外的调试功能,或者需要与非基于MCP的AI助手集成,则应避免使用。

此 server 暴露的工具

从 README 抽取出 12 个工具
  • get_debug_instructions

    Get 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_debugging

    Stop the current debug session

  • step_over

    Execute the next line (step over function calls)

  • step_into

    Step into function calls

  • step_out

    Step out of the current function

  • continue_execution

    Continue until next breakpoint

  • restart_debugging

    Restart 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_breakpoints

    Remove all breakpoints at once

  • get_variables_valuesget_variables_values(scope?)

    Get variables and their values at current execution point

可对比工具

vscode-debugger-extensionai-debugging-assistantgithub-copilot-debuggingai-debugging-tools

安装

安装

**选项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 内安装**

  1. 打开 VS Code
  2. 进入扩展(Ctrl+Shift+X / Cmd+Shift+X)
  3. 搜索"DebugMCP"
  4. 点击安装

**手动 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 对比

GitHub →

最后更新于 · 由 README + GitHub 公开数据自动生成。