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.
@@ -61,6 +61,7 @@ DebugMCP is an MCP server that gives AI coding agents full control over the VS C
61
61
|**pause_execution**| Interrupt a freely-running program and stop at its current location (no breakpoint needed) | None |
62
62
|**restart_debugging**| Restart the current debug session | None |
63
63
|**add_breakpoint**| Add a breakpoint at a specific line (optionally conditional) |`fileFullPath` (required)<br>`line` (required, 1-based)<br>`condition` (optional) |
64
+
|**add_logpoint**| Add a logpoint that logs a message (instead of pausing) when a line is reached |`fileFullPath` (required)<br>`line` (required, 1-based)<br>`logMessage` (required, `{expr}` interpolated)<br>`condition` (optional) |
64
65
|**remove_breakpoint**| Remove a breakpoint from a specific line |`fileFullPath` (required)<br>`line` (required) |
65
66
|**clear_all_breakpoints**| Remove all breakpoints at once | None |
66
67
|**list_breakpoints**| List all active breakpoints | None |
Copy file name to clipboardExpand all lines: package.json
+1-1Lines changed: 1 addition & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -2,7 +2,7 @@
2
2
"name": "debugmcpextension",
3
3
"displayName": "DebugMCP — Agentic Debugging for VS Code, Cursor & More",
4
4
"description": "Your AI agent debugs for you — right inside VS Code, Cursor & other VS Code-based editors. Let Copilot, Cline, Cursor, Codex & any MCP agent set breakpoints, step through code, and inspect variables live instead of guessing from logs.",
description: 'Add a logpoint: a breakpoint that logs a message instead of pausing execution. Ideal for tracing values across many iterations or hot paths without stopping, or where a hard pause would distort timing. Embed expressions in curly braces to interpolate runtime values, e.g. "user id={user.id}, count={items.length}". Provide an optional condition to only log when it evaluates to true.',
276
+
inputSchema: {
277
+
fileFullPath: z.string().describe('Full path to the file'),
278
+
line: z.number().int().describe('Line number (1-based) where the logpoint should be set'),
279
+
logMessage: z.string().describe('Message to log when the line is reached. Wrap expressions in {curly braces} to interpolate runtime values.'),
280
+
condition: z.string().optional().describe('Optional condition expression. When provided, the message is only logged if this expression evaluates to true.'),
0 commit comments