debugger
Inspect and troubleshoot Unity applications by evaluating expressions, examining object state, and managing breakpoints.
Instructions
Unity debugging utilities for inspection and troubleshooting. Actions:
evaluate_expression: Evaluate a C# expression in the current context
get_stack_trace: Get current stack trace (when paused or from last exception)
list_breakpoints: List all breakpoints (requires external debugger)
dump_object: Get detailed dump of an object's fields and properties
invoke_method: Invoke a method on a GameObject or component
get_static_field: Get value of a static field from a type
set_static_field: Set value of a static field
call_static_method: Call a static method on a type
debug_log: Log structured debug information
get_component_values: Get all serialized values from a component
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| action | Yes | Debugger action to perform | |
| maxDepth | No | Maximum depth for object dump (default: 3) | |
| objectId | No | Instance ID of the object | |
| typeName | No | Full type name including namespace (e.g., "UnityEngine.Application") | |
| debugData | No | Structured data for debug_log | |
| fieldName | No | Static field name | |
| expression | No | C# expression to evaluate | |
| fieldValue | No | Value to set for static field | |
| methodArgs | No | Arguments for method invocation | |
| methodName | No | Method name to invoke | |
| objectPath | No | Hierarchy path of the object | |
| componentType | No | Component type name (e.g., "Transform", "MyScript") | |
| includePrivate | No | Include private fields in dump |