Skip to content
Latchkey

How to Enable Step Debug Logging in GitHub Actions

Setting the ACTIONS_STEP_DEBUG secret to true makes every step emit verbose debug lines you can re-run a job to capture.

Add a repository or organization secret (or variable) named ACTIONS_STEP_DEBUG set to true, then re-run the job. For runner internals, set ACTIONS_RUNNER_DEBUG too.

Steps

  • Open Settings to Secrets and variables to Actions.
  • Add ACTIONS_STEP_DEBUG with the value true.
  • Re-run the failed job to capture the verbose log.

Emit your own debug lines

.github/workflows/ci.yml
steps:
  - run: |
      echo "::debug::Resolved version is $VERSION"
      npm run build

Gotchas

  • ::debug:: lines only appear when step debug logging is enabled.
  • Debug logs can leak internal values; remove the secret when finished.

Related guides

Run this faster and cheaper on Latchkey managed runners. Start free →