You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
> ⭐ **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.
@@ -17,11 +17,12 @@ Let AI agents debug your code inside VS Code - set breakpoints, step through exe
17
17
<imgsrc="assets/DebugMCP.gif"width="800">
18
18
</p>
19
19
20
-
## ✨ What's New in 2.2.0
20
+
## ✨ What's New
21
21
22
-
-**`/debug-live` Agent Skill** — DebugMCP now ships a companion [Agent Skill](./skills/debug-live/SKILL.md) that is auto-installed into each configured harness's personal skills directory (e.g. `~/.copilot/skills/debug-live/`). Invoke it with `/debug-live` 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.
-**Cross-agent `debug-live` skill install** — the systematic debugging workflow ships as an [Agent Skill](https://agentskills.io) and is now installed into the **standard skills directories** — `~/.agents/skills/` (the cross-agent location honored by skills-compatible harnesses, including VS Code agent mode) and `~/.copilot/skills/` when present — so it's discoverable everywhere instead of being copied next to each agent's config where nothing scans it (fixes [#105](https://github.com/microsoft/DebugMCP/issues/105), where VS Code never loaded the skill). The server also advertises MCP `instructions` and the `start_debugging` tool points at the skill for the full workflow.
24
+
-**Pause running programs** — new `pause_execution` tool interrupts a freely-running program and stops at its current location, even with no breakpoint set (great for busy loops and embedded/bare-metal targets), so you can then inspect state or step from there.
25
+
-**Robust debugging via the VS Code Testing API** — `start_debugging` with a `testName` uses the VS Code Testing API to discover and launch the test, producing consistent breakpoint hits inside individual test cases across language test runners (pytest, Jest/Vitest, Java, .NET, Go, etc.).
25
26
26
27
## 🚀 Quick Install
27
28
@@ -57,6 +58,7 @@ DebugMCP is an MCP server that gives AI coding agents full control over the VS C
57
58
|**step_into**| Step into function calls | None |
58
59
|**step_out**| Step out of the current function | None |
59
60
|**continue_execution**| Continue until next breakpoint | None |
61
+
|**pause_execution**| Interrupt a freely-running program and stop at its current location (no breakpoint needed) | None |
60
62
|**restart_debugging**| Restart the current debug session | None |
61
63
|**add_breakpoint**| Add a breakpoint at a specific line (optionally conditional) |`fileFullPath` (required)<br>`lineContent` (required)<br>`condition` (optional) |
62
64
|**remove_breakpoint**| Remove a breakpoint from a specific line |`fileFullPath` (required)<br>`line` (required) |
@@ -65,11 +67,13 @@ DebugMCP is an MCP server that gives AI coding agents full control over the VS C
65
67
|**get_variables_values**| Get variables and their values at current execution point |`scope` (optional: 'local', 'global', 'all') |
66
68
|**evaluate_expression**| Evaluate an expression in debug context |`expression` (required) |
67
69
68
-
> **Note:** The MCP server intentionally exposes **tools only** — no procedural
69
-
> instructions, no documentation resources. Workflow guidance (when to debug, how to
70
-
> structure a root-cause investigation, language-specific quirks) lives in the companion
71
-
> [DebugMCP Agent Skill](./skills/debug-live/SKILL.md) so it can be loaded into an
72
-
> agent's prompt context independently of the MCP capability surface.
70
+
> **Note:** The MCP server exposes **tools** for debugger actions, while the procedural
71
+
> workflow guidance (when to debug, how to structure a root-cause investigation,
72
+
> language-specific quirks) lives in the companion [Agent Skill](./skills/debug-live/SKILL.md).
73
+
> Tool descriptions stay terse and behavioral; the extension installs the `debug-live` skill
74
+
> into the standard skills directories (`~/.agents/skills/`, plus `~/.copilot/skills/` when
75
+
> present) so skills-compatible harnesses load the full workflow on demand. The server also
76
+
> advertises MCP `instructions` pointing agents at it before debugging.
Uses VS Code's `globalState` to track whether the onboarding popup has been shown, preventing repeated prompts on every activation.
75
75
76
+
### Skill delivery — standard skills directories
77
+
78
+
The `debug-live` Agent Skill is installed into the **standard personal skills directories** defined by the Agent Skills open standard (agentskills.io), rather than being copied next to each agent's config file:
79
+
-**`~/.agents/skills/debug-live/`** — the cross-agent location honored by skills-compatible harnesses, including VS Code agent mode and Copilot CLI. Always installed.
80
+
-**`~/.copilot/skills/debug-live/`** — Copilot's own skills path; also installed when a Copilot home directory (`~/.copilot`, or `$COPILOT_HOME`) exists.
81
+
82
+
`installDebugMCPSkill()` copies the one bundled source (`skills/debug-live/SKILL.md`) into each target with `force: true` (idempotent refresh) and removes stale legacy copies (`debug`, `really-debug`). It is agent-independent — a single shared install covers every skills-compatible harness.
83
+
84
+
This fixes issue #105: earlier builds copied the skill next to each agent's config (e.g. `Code/User/skills/` for VS Code Copilot), a directory no harness scans, so the skill never loaded. Installing to `~/.agents/skills/` — which VS Code agent mode does scan — makes it discoverable.
85
+
76
86
## Key Code Locations
77
87
78
88
- Class definition: `src/utils/agentConfigurationManager.ts`
@@ -91,6 +102,8 @@ Uses VS Code's `globalState` to track whether the onboarding popup has been show
91
102
5. Show success message with option to open config file
92
103
6. Mark popup as shown
93
104
105
+
The bundled `debug-live` skill is installed into the standard skills directories (`~/.agents/skills/`, plus `~/.copilot/skills/` when present) during step 4, so every skills-compatible harness discovers it from one shared location.
0 commit comments