Variables
debug_get_variablesInspect local variables and closures on a paused debug frame, with paginated property previews and cycle detection. Expand nested objects via objectId to explore values.
Instructions
Inspect locals/closures on a paused frame, or expand an objectId from a previous result. Returns a preview: default 32 properties, cursor pages the rest, overflow/已折叠 when truncated, [Circular]/已回环 for cycles. Expand nested values with objectId. Global/script scopes are omitted unless includeGlobal or scopeIndex is set. Requires a paused target.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| cursor | No | Skip this many properties (from a previous nextCursor) | |
| objectId | No | If set, expand this object instead of frame scopes | |
| sessionId | No | Session id from debug_launch/debug_attach. Required when more than one session is live. | |
| scopeIndex | No | Only return this scope index from the frame scopeChain | |
| callFrameId | No | Call frame id from the pause snapshot. Default: top frame | |
| includeGlobal | No | Include global and script scopes. Default false | |
| maxProperties | No | Max properties per object/scope. Default 32 |