I use the #DEBUG option with show statments.
The show statments tell me the values in the variables I want to know and the
#DEBUG option allows me an easy way to turn the shows on and off. Put
something like '>' $VAR '<' around variables that may be null or space so
you can tell what they are.