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=truefor step debug logs: every expression evaluation,##[debug]lines from actions (core.debug), and context values. - set
ACTIONS_RUNNER_DEBUG=truefor runner diagnostic logs, downloadable asrunner-diagnostic-logsin 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.
More on Debugging, Cost, Monorepos & Releases
What tools help you inspect a run from the terminal?BeginnerHow is GitHub Actions billed for private repos, and what are the multipliers?IntermediateName the top ways to reduce Actions minutes and wall-clock time.IntermediateHow do you build only the services that changed in a monorepo?AdvancedWhy are workflow-level `paths` filters problematic with required checks, and what is the fix?IntermediateHow do you automate releases with release-please?Intermediate