{"version":"2.1.20","anchor":"debug-logging-to-file","canonical_anchor":"debug-logging-to-file","heading":"Debug Logging to File","tier":null,"area":null,"scope":null,"heads_up":null,"url":"https:\/\/changelogs.core-directive.com\/v\/2.1.20\/e\/debug-logging-to-file","release_url":"https:\/\/changelogs.core-directive.com\/v\/2.1.20","markdown":"### Debug Logging to File\n\n**What**\n\nNew `--debug-file` CLI flag writes debug logs to a specific file path.\n\n**Usage**\n\n`claude --debug-file \/path\/to\/debug.log claude --debug-file=\/path\/to\/debug.log` **Details** - Implicitly enables debug mode when specified - Useful for persistent debugging and troubleshooting **Evidence** Argument parser at line 2836 (`if (K.startsWith(\"--debug-file=\"))`) and help text at line 577087 (`\"--debug-file <path>\"`)"}