Skip to content

debug_variables

MCP tools › Debugger

Children of a structured variable in a stopped debug session (struct fields, array elements) by its non-zero reference. Java and Kotlin values have the form of the Variables list: Type@id, collections with size = N, no this in a frame without a receiver; the sizes are read from fields, nothing is evaluated for them. Needs the debug right.

Its results carry text from process, files: the client is told to treat that as data, never as instructions.

Capabilitydebug.debug_variables
AreaDebugger
Accesschanges processes
Reaches—
Rightsdebug
Dry runnone

Arguments

ArgumentTypeDescription
sessionrequiredintegerSession id.minimum 0
referencerequiredintegerVariable reference from a previous answer (non-zero).

Call it from a shell

ferris-idea call runs one tool with the rights and safe mode of ferris-idea mcp. Replace the folder and the placeholder values.

Terminal window
ferris-idea call ~/my-project debug_variables '{"session":1,"reference":1}'
Input schema as JSON
{
"type": "object",
"required": [
"session",
"reference"
],
"properties": {
"session": {
"description": "Session id.",
"type": "integer",
"minimum": 0
},
"reference": {
"description": "Variable reference from a previous answer (non-zero).",
"type": "integer"
}
}
}