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
| Name | Required | Description | Default |
|---|---|---|---|
| gdb_session_id | Yes | Active GDB session. | |
| lsp_session_id | Yes | Active LSP session for the project. | |
| function_name | Yes | Name of the function to analyze. |
Output Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |