Debug Mode
Debug Mode
/debug mode will output verbose information to a specific text file. Claude will also prompt you to describe the problem as it attempts to investigate the issue.
- Debug logging is now active in your Claude Code session.
- Debug log location:
/home/andrew/.claude/debug/<session-id>.txt - To help you debug an issue: 1) describe the problem, 2) reproduce it, 3) Claude reviews the debug log for error messages/warnings.
- If you can't easily reproduce it in this session, you can also restart Claude Code with
claude --debug.
Debug log entries include timestamps and categories like LSP Diagnostics, Hooks, FileHistory, MCP server calls, autocompact stats, tool search status, attribution headers, OAuth token checks, StatusLine input, and installer/version checks.
Related: Claude Doctor