claude --debug

Enable debug mode, optionally filtered by category.

Example

claude --debug='mcp,startup'

Source: Claude Code CLI reference, checked 2026-10-24.

More flags

  • --verbose: Show full turn-by-turn output.
  • --bare: Minimal mode: skip auto-discovery of hooks, skills, plugins, MCP and CLAUDE.md.
  • --tools: Restrict which built-in tools Claude can use.

All CLI flags

Remember the flag next time

/cards has a flip-card deck for every Claude Code CLI flag.