Interview Prep/GitHub Actions/Debugging, Cost, Monorepos & Releases

How do you enable debug logging, and what does each flag show?

BeginnerConceptDebugging, Cost, Monorepos & Releases
Answer
  • Re-run a job with the Enable debug logging checkbox, or
  • set a secret or variable ACTIONS_STEP_DEBUG=true for step debug logs: every expression evaluation, ##[debug] lines from actions (core.debug), and context values.
  • set ACTIONS_RUNNER_DEBUG=true for runner diagnostic logs, downloadable as runner-diagnostic-logs in the log archive (job assignment, process handling).
gh variable set ACTIONS_STEP_DEBUG --body true
gh run rerun 1234567890 --debug

Turn it off afterwards; debug logs are noisy and may reveal more internal values.

All GitHub Actions questions Roadmap: GitHub Actions

More on Debugging, Cost, Monorepos & Releases