Make has a debug flag:
-n, --just-print, --dry-run, --recon
Print the commands that would be executed, but do not execute them.
It would be great to have this flag present to help debug a non-functional shelljs script. Maybe just have it print the command to the console rather than execute the command? or do both?