DebugMCP is a Microsoft-maintained VS Code extension that also runs as an MCP server, giving AI coding agents direct control over the VS Code debugger. Agents can autonomously set breakpoints, launch debug sessions, step through code line by line, inspect variable values, and evaluate expressions, just like a human developer. It runs 100% locally, requires zero configuration, works out of the box with any MCP-compatible assistant, and supports any VS Code supported coding language (Python, JavaScript/TypeScript, Java, C/C++, Go, Rust, PHP, Ruby, C#/.NET). The server listens over Streamable HTTP on loopback (default port 3001), auto-detects and offers to register itself with GitHub Copilot, GitHub Copilot CLI, Cline, Cursor, Codex, Windsurf, Roo Code, Antigravity, and other clients, and can also be configured manually. Security controls include loopback-only binding, Host/Origin header validation, least-privilege variable inspection, and secret redaction, with no debug data leaving the machine. Procedural debugging guidance ships as the companion debug-live Agent Skill, installed into standard skills directories.
Use cases
Letting an AI agent set breakpoints and step through execution to locate runtime defects
Inspecting runtime variable values and expressions without adding logging
Debugging unit tests by passing a testName to pause inside a specific test case
Pausing and inspecting a freely-running program such as a busy loop or embedded target
Interactive debugging across multi-language projects (Python, JS/TS, Java, C/C++, Go, Rust, PHP, Ruby, C#/.NET)