debugging the shell script with out actually running

Hello, Some one asked me in the inteview.... The question is,

How do we debug the schell script before even running..... Interviewer
told me one clue... There is SET command to accomplish this... Can any
one tell me what kind of set commands.... Thanks.

set -n
or
set -o noexec

'man ksh' for details

Great. Thanks.