复制下面这句话,粘贴给 Claude Code、Codex、Cursor 等 AI 编程工具,它会读取安装说明并在你确认后完成安装。
请阅读 https://ai.atlankj.com/install/asset/gh-debug-178a03523c78 ,按照其中的说明把「debug」安装到你(当前 AI 工具)中。执行前先告诉我将运行的命令和写入的位置,等我确认。
查看 AI 将读取的安装说明正在读取 GitHub 原文…
内容来自 GitHub 原始文件,由原作者维护。在 GitHub 查看
Help the user debug an issue they're encountering in this current Claude Code session.
Debug logging was OFF for this session until now. Nothing prior to this /debug invocation was captured.
Tell the user that debug logging is now active at ~/.claude/debug/{{SESSION_ID}}.txt, ask them to reproduce the issue, then re-read the log. If they can't reproduce, they can also restart with claude --debug to capture logs from startup.
The debug log for the current session is at: ~/.claude/debug/{{SESSION_ID}}.txt
No log file exists yet.
For additional context, grep for [ERROR] and [WARN] lines across the full file.
No daemon lock or status file found — the background daemon does not appear to be running. If the issue involves background sessions or claude agents, the daemon log (if any) is at ~/.claude/daemon.log.
The user did not describe a specific issue. Read the debug log and summarize any errors, warnings, or notable issues.
Remember that settings are in: