--debug-to-stderr
A Claude Code CLI flag, read out of the shipped bundle. No mined inventory carries it: everything below comes from what this site has written about it.
What it is
Debug logging now runs through one logger that keeps queued lines when it restarts.
Not Anthropic's. This is the line from the earliest changelog entry here that named it, v2.1.227.
Presence across releases
The miner has never read a build containing this name. It is here because a changelog entry of ours names it, which is evidence that it existed and not evidence of which releases carried it. The inventory starts at v2.1.138 and everything older than that was never mined.
Changelog entries naming it
-
v2.1.227Debug logging rebuilt around a single logger instance
Debug logging now runs through one logger that keeps queued lines when it restarts.
named in this entry
Documentation pages
None of Anthropic's documentation pages this site has a copy of carries this name.
Names beside it
Every CLI flag in the inventory starting --debug, up to twelve of them.
--debugEnable debug mode with optional category filtering, such as --debug='mcp,startup' or --debug='!1p'. The filter binds only in the = form; a space-separated filter enables debug mode without filtering 2.1.138
--debug-fileWrite debug logs to a specific file path. Implicitly enables debug mode. Takes precedence over CLAUDE_CODE_DEBUG_LOGS_DIR 2.1.138
Read out of the published npm bundle release by release, and out of Anthropic's own documentation as this site captured it. Nothing on this page is a description anybody here wrote about what the CLI flag does. All CLI flags.