Skip to content

Commit 42e6087

Browse files
authored
Merge pull request #86 from microsoft/ozzafar/resolve_icms
Add /debug SKILL
2 parents ec7f6a0 + 3b7b502 commit 42e6087

14 files changed

Lines changed: 154 additions & 658 deletions

File tree

CHANGELOG.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,12 @@ All notable changes to DebugMCP will be documented in this file.
44

55
The format is based on [Keep a Changelog](https://keepachangelog.com/), and this project adheres to [Semantic Versioning](https://semver.org/).
66

7+
## [1.2.0] - 2026-06-04
8+
9+
### Added
10+
- **`/debug` Agent Skill** — bundled companion skill at `skills/debug/` that encodes the systematic debugging workflow for AI agents. The skill is automatically copied into each configured harness's personal skills directory (e.g. `~/.copilot/skills/debug/`) when DebugMCP is registered, and can be invoked with `/debug` in supporting agents.
11+
- **Robust test debugging via the VS Code Testing API**`start_debugging` with a `testName` now discovers and launches the target test through the VS Code Testing API, producing reliable breakpoint hits across pytest, Jest/Vitest, Java, .NET, Go, and other Testing-API-integrated runners.
12+
713
## [1.0.8] - 2025-03-14
814

915
### Added

README.md

Lines changed: 13 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,21 +1,26 @@
11
# DebugMCP (MCP Server) - Empowering AI Agents with Operational Debugging Capabilities
22

3-
Let AI agents debug your code inside VS Code - set breakpoints, step through execution, inspect variables, and evaluate expressions. Works with **Codex**, **GitHub Copilot**, **GitHub Copilot CLI**, **Cline**, **Cursor**, **Windsurf**, **Roo Code**, and any MCP-compatible assistant. Supports **Python**, **JavaScript/TypeScript**, **Java**, **C#**, **C++**, **Go**, **Rust**, **PHP**, and **Ruby**.
3+
Let AI agents debug your code inside VS Code - set breakpoints, step through execution, inspect variables, and evaluate expressions. Works with **Codex**, **GitHub Copilot**, **GitHub Copilot CLI**, **Cline**, **Cursor**, **Windsurf**, **Roo Code**, and any MCP-compatible assistant. Compatible with any VS Code supported coding language.
44

55
[![License: MIT](https://img.shields.io/badge/License-MIT-yellow.svg)](https://opensource.org/licenses/MIT)
66
[![VS Code](https://img.shields.io/badge/VS%20Code-1.104.0+-blue.svg)](https://code.visualstudio.com/)
7-
[![Version](https://img.shields.io/badge/version-1.2.0-green.svg)](https://github.com/microsoft/DebugMCP)
7+
[![Version](https://img.shields.io/badge/version-2.0.0-green.svg)](https://github.com/microsoft/DebugMCP)
88
[![VS Marketplace](https://img.shields.io/badge/VS%20Marketplace-Install-blue.svg)](https://marketplace.visualstudio.com/items?itemName=ozzafar.debugmcpextension)
99

1010
> **If you find DebugMCP useful, please [star the repo on GitHub](https://github.com/microsoft/DebugMCP)!** It helps others discover the project and motivates continued development.
1111
12+
> **📢 Developers Notice**: This extension is maintained by [ozzafar@microsoft.com](mailto:ozzafar@microsoft.com) and [orbarila@microsoft.com](mailto:orbarila@microsoft.com). We welcome feedback and contributions to help improve this extension.
13+
1214
> 🎬 Watch DebugMCP in action — your AI assistant autonomously sets breakpoints, steps through code, and inspects variables directly in VS Code.
1315
1416
<p align="center">
1517
<img src="assets/DebugMCP.gif" width="800">
1618
</p>
1719

18-
> **📢 Developers Notice**: This extension is maintained by [ozzafar@microsoft.com](mailto:ozzafar@microsoft.com) and [orbarila@microsoft.com](mailto:orbarila@microsoft.com). We welcome feedback and contributions to help improve this extension.
20+
## ✨ What's New in 2.0.0
21+
22+
- **`/debug` Agent Skill** — DebugMCP now ships a companion [Agent Skill](./skills/debug/SKILL.md) that is auto-installed into each configured harness's personal skills directory (e.g. `~/.copilot/skills/debug/`). Invoke it with `/debug` in supporting agents to load the systematic debugging workflow and trigger DebugMCP tools with the right context.
23+
- **Robust debugging via the VS Code Testing API**`start_debugging` with a `testName` now uses the VS Code Testing API to discover and launch the test, replacing the previous best-effort path. This works reliably across language test runners that integrate with the Testing API (pytest, Jest/Vitest, Java, .NET, Go, etc.) and produces consistent breakpoint hits inside individual test cases.
1924

2025
## 🚀 Quick Install
2126

@@ -45,7 +50,6 @@ DebugMCP is an MCP server that gives AI coding agents full control over the VS C
4550

4651
| Tool | Description | Parameters |
4752
|------|-------------|------------|
48-
| **get_debug_instructions** | Get the debugging guide with best practices and workflow instructions | None |
4953
| **start_debugging** | Start a debug session for a source code file | `fileFullPath` (required)<br>`workingDirectory` (required)<br>`testName` (optional)<br>`configurationName` (optional) |
5054
| **stop_debugging** | Stop the current debug session | None |
5155
| **step_over** | Execute the next line (step over function calls) | None |
@@ -60,7 +64,11 @@ DebugMCP is an MCP server that gives AI coding agents full control over the VS C
6064
| **get_variables_values** | Get variables and their values at current execution point | `scope` (optional: 'local', 'global', 'all') |
6165
| **evaluate_expression** | Evaluate an expression in debug context | `expression` (required) |
6266

63-
> **Note:** The `get_debug_instructions` tool is particularly useful for AI clients like GitHub Copilot that don't support MCP resources. It provides the same debugging guide content that is also available as an MCP resource.
67+
> **Note:** The MCP server intentionally exposes **tools only** — no procedural
68+
> instructions, no documentation resources. Workflow guidance (when to debug, how to
69+
> structure a root-cause investigation, language-specific quirks) lives in the companion
70+
> [DebugMCP Agent Skill](./skills/debug/SKILL.md) so it can be loaded into an
71+
> agent's prompt context independently of the MCP capability surface.
6472
6573
### 🎯 Debugging Best Practices
6674

docs/agent-resources/debug_instructions.md

Lines changed: 0 additions & 135 deletions
This file was deleted.

docs/agent-resources/troubleshooting/cpp.md

Lines changed: 0 additions & 78 deletions
This file was deleted.

docs/agent-resources/troubleshooting/csharp.md

Lines changed: 0 additions & 108 deletions
This file was deleted.

0 commit comments

Comments
 (0)