get_variables_values
Get the values of specifically named variables at the current execution point
How to use it
get_variables_values is exposed by the DebugMCP MCP server. Add the server to your MCP client (Claude Desktop, Cursor, Windsurf and others), and the get_variables_values tool becomes available to the model automatically. See the full listing for setup details and every tool this server provides.
FULL DEBUGMCP LISTINGOther tools in DebugMCP (15)
Add a breakpoint at a specific line (optionally conditional)
Add a logpoint that logs a message (instead of pausing) when a line is reached
Remove all breakpoints at once
Continue until next breakpoint
Evaluate an expression in debug context
List all active breakpoints
List names and types of variables in scope, without reading any values
Interrupt a freely-running program and stop at its current location (no breakpoint needed)
Remove a breakpoint from a specific line
Restart the current debug session
Start a debug session for a source code file
Step into function calls
Step out of the current function
Execute the next line (step over function calls)
Stop the current debug session