Trace execution flow through code to understand behavior
Trace execution flow to understand how a specific function, endpoint, or feature works. Use when you need to follow code paths, identify dependencies, and see how data transforms through the system.
/plugin marketplace add br-huang/claude-toolkit/plugin install br-huang-debug-toolkit-debug-toolkit@br-huang/claude-toolkitFunction, endpoint, or feature to traceTrace the execution flow through code to understand how a specific function, endpoint, or feature works.
Target to trace: $ARGUMENTS
Perform a comprehensive trace of the execution flow:
1. Find Entry Point
2. Trace Forward
3. Trace Data Flow
4. Map Dependencies
Provide a structured trace:
ENTRY POINT: [file:line] function_name(params)
│
├── [file:line] called_function_1(params)
│ ├── [purpose]: Brief description
│ ├── [returns]: What it returns
│ └── [side effects]: Any side effects
│
├── [file:line] called_function_2(params)
│ ├── [purpose]: Brief description
│ ├── [conditional]: If X then Y else Z
│ └── [external]: Database query / API call
│
└── EXIT: [return value or final state]
Include: