Claude Code HookDevelopment Tools18 installs

Debug Window

Auto Debug Log Viewer. Opens a live-tailing debug log window when Claude Code starts with --debug or -d flag. The window closes automatically on session end. To keep the debug window open after session ends, set DEBUG_WINDOW_AUTO_CLOSE_DISABLE=1 in your settings.json. Tested on Intel Mac. Supports macOS, Linux, and Windows (Git Bash/Cygwin). Contributions from other platform users are welcome.

Install with the Claude Code Templates CLI
$ npx claude-code-templates@latest --hook="development-tools/debug-window" --yes

Requires Claude Code. The command adds this hook to your project's .claudedirectory — nothing runs on ToolZip's servers.

What's inside this hook

Component source

{

"description": "Auto Debug Log Viewer. Opens a live-tailing debug log window when Claude Code starts with --debug or -d flag. The window closes automatically on session end. To keep the debug window open after session ends, set DEBUG_WINDOW_AUTO_CLOSE_DISABLE=1 in your settings.json. Tested on Intel Mac. Supports macOS, Linux, and Windows (Git Bash/Cygwin). Contributions from other platform users are welcome.",

"hooks": {

"SessionStart": [

{

"matcher": "*",

"hooks": [

{

"type": "command",

"command": ".claude/hooks/debug-window.sh"

}

]

}

],

"SessionEnd": [

{

"hooks": [

{

"type": "command",

"command": ".claude/hooks/debug-window.sh"

}

]

}

]

}

}

Type
Hook
Category
Development Tools
Installs
18
Source
GitHub ↗

Related Claude Code Hooks

Catalog data and component content are sourced from the open-source davila7/claude-code-templates project (MIT license). ToolZip curates the listing and writes original descriptions; every component links back to its original source. Claude Code is a product of Anthropic. ToolZip is an independent catalog and is not affiliated with or endorsed by Anthropic.