Run the script with a -x parameter and it will run the script in its entirety but print each line before it executes.

Technical notes, and other ideas.
Run the script with a -x parameter and it will run the script in its entirety but print each line before it executes.