Skip to main content

Logs and files

On your machine​

ItemLocationNotes
debugd log~/.debughero/logs/debugd.logAlways written. See debugd log.
Old debugd logs~/.debughero/logs/debugd.log.1 to .4Rotated logs. .1 is the newest.
CredentialsOS keychain, service debughero-cli, account defaultmacOS 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:

LogLevelChange it with
Console (stdout)infoLOG_LEVEL
File (~/.debughero/logs/debugd.log)debugENABLE_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>
OptionDescription
-f, --followStream 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​

ItemLocationHow long it stays
Debug containerThe ephemeral container debughero-<random> in the target pod, one for each sessionUntil the pod is replaced
Delve log/tmp/delve.log in the debug containerUntil the pod is replaced