How to see step_script contents?

I’ve updated gitlab runner and my jobs with started to fail with message:

Executing "step_script" stage of the job script

Using docker image sha256:*redacted* for *redacted* with digest *redacted* ...
printf: invalid option -- '-'
BusyBox v1.31.1 (2020-03-30 16:46:01 CEST) multi-call binary.
Usage: bash [-/+OPTIONS] [-/+o OPT]... [-c 'SCRIPT' [ARG0 [ARGS]] / FILE [ARGS] / -s [ARGS]]
Unix shell interpreter

I’ve fixed a similar issue by adding “bash” package to the image, but somewhy this other image still fails.

My question is: how to make step_script contents be visible, i.e what is being executed? this would help me to troubleshoot the problem further.

step_script is what you have in your job’s script: section

Found the answer myself:

    CI_DEBUG_TRACE: "true"

balonik the problem is about code that gitlab injects itself.