Skip to main content
Glama
William-An

cpp-debug-mcp

by William-An

analyze_function

Sets a temporary breakpoint on a C++ function, then uses clangd to get its signature and references and GDB to retrieve local variables.

Instructions

Analyze a function using both GDB and LSP.

Sets a temporary breakpoint at the function, gets its signature and references from clangd, and retrieves local variables if the program is stopped there.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
gdb_session_idYesActive GDB session.
lsp_session_idYesActive LSP session for the project.
function_nameYesName of the function to analyze.

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault
resultYes

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/William-An/cpp-debug-mcp'

If you have feedback or need assistance with the MCP directory API, please join our Discord server