get_local_variables
Get local variables
How to use it
get_local_variables is exposed by the MCP Server Gdb MCP server. Add the server to your MCP client (Claude Desktop, Cursor, Windsurf and others), and the get_local_variables tool becomes available to the model automatically. See the full listing for setup details and every tool this server provides.
FULL MCP SERVER GDB LISTINGOther tools in MCP Server Gdb (15)
close_session
Close session
continue_execution
Continue execution
create_session
Create a new GDB debugging session
delete_breakpoint
Delete breakpoint
get_all_sessions
Get all sessions
get_breakpoints
Get breakpoint list
get_registers
Get registers
get_session
Get specific session information
get_stack_frames
Get stack frame information
next_execution
Step over next line
read_memory
Read memory contents
set_breakpoint
Set breakpoint
start_debugging
Start debugging
step_execution
Step into next line
stop_debugging
Stop debugging