Logs and files
On your machine
| Item | Location | Notes |
|---|---|---|
debugd log | ~/.debughero/logs/debugd.log | Always written. See debugd log. |
Old debugd logs | ~/.debughero/logs/debugd.log.1 to .4 | Rotated logs. .1 is the newest. |
| Credentials | OS keychain, service debughero-cli, account default | macOS Keychain, or the Secret Service (for example GNOME Keyring) on Linux. debugctl logout deletes them. |
debugd keeps the sessions in memory. When debugd stops, it forgets the sessions. The debug containers stay in the pods.
debugd log
debugd writes two logs:
| Log | Level | Change it with |
|---|---|---|
| Console (stdout) | info | LOG_LEVEL |
File (~/.debughero/logs/debugd.log) | debug | ENABLE_VERBOSE_DEBUG_LOGS=true or debugd --verbose sets trace |
The log file rotates at 10 MiB. debugd keeps 4 old files, so the logs use not more than 50 MiB.
debugd removes bearer tokens and JWTs from the log lines ([REDACTED]).
When you report a problem, start debugd with --verbose, do the steps again, and attach debugd.log.
Delve log of a session
Delve runs in the debug container and writes its log there. To get it without cluster access, use the session ID from debugctl get sessions:
shell
debugctl logs <session-id>
| Option | Description |
|---|---|
-f, --follow | Stream new lines until you press Ctrl+C. |
-t, --tail <n> | The last n lines. 0 shows the whole log. |
-s, --source <source> | dlv (default): the Delve log file. dlv-stdio: the Delve stdout and stderr. |
See debugctl logs.
In the cluster
| Item | Location | How long it stays |
|---|---|---|
| Debug container | The ephemeral container debughero-<random> in the target pod, one for each session | Until the pod is replaced |
| Delve log | /tmp/delve.log in the debug container | Until the pod is replaced |