Debug Hooks Systematic workflow for debugging Claude Code hooks. When to Use - "Hook isn't firing" - "Hook produces wrong output" - "SessionEnd not working" - "PostToolUse hook not triggering" - "Why didn't my hook run?" Workflow 1. Check Outputs First (Observe Before Editing) 2. Verify Hook Registration 3. Check Hook Files Exist 4. Test Hook Manually 5. Check for Silent Failures If using detached spawn with : Fix: Add temporary logging: 6. Rebuild After Edits If you edited TypeScript source, you MUST rebuild: Source edits alone don't take effect - the shell wrapper runs the bundled . Common…