step_and_trace
Step through code execution by specified number of steps, collect variable values at each step, and return traces or write to file for flow analysis.
Instructions
Step through code N times, collecting variables at each step. Returns all traces or writes to a file. Useful for tracing execution flow.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| count | No | Number of steps to take (default: 100) | |
| timeout | No | Maximum time in ms (default: 30000) | |
| dumpFile | No | If set, write traces to this file (JSONL format) instead of returning in response | |
| stepType | No | Type of step: in (step into functions), over (step over), out (step out). Default: over | |
| sessionId | Yes | Debug session ID |