Browse Source

Debug logs

Alvin Unreal 2 months ago
parent
commit
a76c2fb09d
1 changed files with 10 additions and 0 deletions
  1. 10 0
      AGENTS.md

+ 10 - 0
AGENTS.md

@@ -260,6 +260,16 @@ Before working on any task, read `codemap.md` to understand:
 
 For deep work on a specific folder, also read that folder's `codemap.md`.
 
+## Debugging Issues
+### OpenCode
+Log files are written to:
+macOS/Linux: ~/.local/share/opencode/log/
+Windows: Press WIN+R and paste %USERPROFILE%\.local\share\opencode\log
+Log files are named with timestamps (e.g., 2025-01-09T123456.log) and the most recent 10 log files are kept.
+You can set the log level with the --log-level command-line option to get more detailed debug information. For example, opencode --log-level DEBUG.
+### Plugin
+~/.local/share/opencode/oh-my-opencode-slim.<timestamp>.log
+
 ## Cloned Dependency Source
 
 Read-only dependency source repositories are available under