lldb_evaluate
Evaluate C/C++ expressions during debugging to inspect variables, call functions, and analyze program state within the LLDB debugger context.
Instructions
Evaluate a C/C++ expression in the debugger context.
Expressions can include:
- Variable access: 'my_var', 'ptr->member'
- Array indexing: 'array[5]'
- Function calls: 'strlen(str)'
- Casts: '(int*)ptr'
- Arithmetic: 'x + y * 2'
- sizeof: 'sizeof(MyStruct)'
Args:
params: EvaluateExpressionInput with expression and context
Returns:
str: Expression result with type informationInput Schema
| Name | Required | Description | Default |
|---|---|---|---|
| params | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |