Introduces OpenClaw debugging methods and log viewing techniques to help troubleshoot issues and optimize performance.
Master debugging techniques to quickly locate and resolve OpenClaw issues.
# Real-time log viewing
openclaw logs -f
# View last 100 lines
openclaw logs --tail 100
# Enable debug mode
openclaw run my-agent --debug
openclaw doctor
Set in openclaw.yaml:
logLevel: debug # or info, warn, error
Use the `openclaw logs -f` command to follow logs in real-time.
Use `openclaw logs --tail 100` to view the last 100 lines of logs.
Add the `--debug` flag to the run command, for example, `openclaw run my-agent --debug`.
Run the `openclaw doctor` command to diagnose the configuration status.
Set the `logLevel` field in the `openclaw.yaml` configuration file.
人类专家验证
官方机器人验证