Python1 Puzzles - How to debug

Hi Team,

Some of these puzzles have “Energy”, and you are supposed to end the level with exactly 0 energy.
How can we see during each iteration of the loop how much the current energy is? Using print(energy) seems to do nothing. I feel like this does not teach debugging, instead makes my son randomly add/remove energy until he finishes…