Start debugging session with investigation and targeted logging
Investigates bugs iteratively with targeted logging, proposes fixes, and cleans up debug code.
/plugin marketplace add adeonir/claude-code-plugins/plugin install debug-tools@claude-code-extrasbug descriptionStart an iterative debugging session to find and fix bugs.
"bug description" - Description of the bug or unexpected behaviorArguments received: $ARGUMENTS
flowchart TD
start["/debug"] --> investigate[1: Investigate]
investigate --> found{Root cause?}
found -->|Yes| fix[3: Propose Fix]
found -->|No| inject[2: Inject Logs]
inject --> reproduce[Reproduce + Analyze]
reproduce --> investigate
fix --> verify[4: Verify]
verify -->|Fixed| cleanup[5: Cleanup]
verify -->|Not fixed| investigate
Invoke the bug-investigator agent to:
If runtime data is needed, invoke the log-injector agent to:
[DEBUG] logs at strategic pointsWhen root cause is confirmed:
After fix is applied:
Automatically remove all debug logs:
[DEBUG] statements/git-helpers:code-review)[DEBUG] prefix for easy identification