Skip to content

[BUG] v0.19.8: --debug prints log path but debug log file is never created #6600

Description

@azurecgx

What happened?

When launching Qwen Code v0.19.8 with --debug (or -d), the CLI correctly recognizes the flag and prints:

Debug mode enabled
Logging to: ~/.qwen/debug/<session-id>.txt

However, the debug log file is never actually created on disk. The latest symlink in ~/.qwen/debug/ also remains pointing at an old file.

Verified with:

ls -la ~/.qwen/debug/<session-id>.txt
# No such file or directory

The last successful debug file in ~/.qwen/debug/ is from June 15, 2026. All sessions since then (including today's) fail to produce any debug output file.

What did you expect to happen?

A .txt debug log file should be created at the printed path, containing [DEBUG], [INFO], etc. log entries — as was the behavior in earlier versions (verified by examining existing files from June 15 and earlier).

Client information

Client Information
Qwen Code v0.19.8
Model: (OpenAI-compatible API)
Auth: openai
Platform: darwin arm64 (24.6.0)
Node.js: v24.3.0
Git commit: 34b1a8324
LSP: disabled

Login information

OpenAI-compatible API key.

Anything else we need to know?

  • The session ID in the printed path matches the actual running session, confirming path computation works correctly — the bug is in the file-writing step, not path resolution.
  • The latest symlink is also not updated (still points to the June 15 file).

Metadata

Metadata

Assignees

No one assigned

    Labels

    category/cliCommand line interface and interactionpriority/P2Medium - Moderately impactful, noticeable problemscope/loggingLogging systemsstatus/needs-triageIssue needs to be triaged and labeledtype/bugSomething isn't working as expected

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions