debugctl logs
Fetch the dlv debugger logs for a debug session
Synopsis
Fetch the Delve debugger logs for a debug session from its ephemeral debug container, without needing cluster access or kubectl.
source=dlv (default) is Delve's own log file; source=dlv-stdio is Delve's stdout/stderr.
shell
debugctl logs <session-id>
Examples
shell
# Print the recent dlv log for session 3
debugctl logs 3
# Follow the log until interrupted
debugctl logs 3 -f
# Last 200 lines, or the whole log
debugctl logs 3 --tail 200
debugctl logs 3 --tail 0
Options
Flags
-f, --follow stream new log lines until interrupted
-h, --help help for logs
-s, --source string log source: dlv or dlv-stdio (default "dlv")
-t, --tail int trailing lines to show (0 = whole log); default is a server-side cap
See also
- debugctl - Start and manage DebugHero debug sessions