Turning debugging Message comments on and off

Scott Corbett scott at stillpoint.us
Sun Feb 24 09:25:50 PST 2008


Robert,

I recall someone writing a few years ago about a neat way to do this.

In the .Initialize procedure, set a variable such as DebugVar ="On" or  
"Off"

then, for each message do something like this:

If DebugVar="On"
	Message "Give me the news"
endif

By changing only one variable value you can turn on and off all debug  
messages.

Scott


On Feb 24, 2008, at 10:48 AM, Robert Ameeti wrote:

> I sprinkle Message commands throughout my code at times in an effort
> to track down problems during coding. After I am through debugging, I
> then comment out my Message commands so as to not have the user
> having to react to the debug messages. Sometimes I do not notice a
> Message command and have overlooked the need to comment it out but
> the user later runs into that odd area of the code and voila, they
> see it.
>
> Does anyone have any trick for easily turning off (and on) all
> Message commands that they've used for debugging? The problem comes
> about in that obviously there will be some Message commands that we
> do need for the user.
> -- 
>
> <><><><><><><><><><><><><><><><><><>
> Robert Ameeti
>
> I read somewhere that 77 per cent of all the mentally ill live in  
> poverty. Actually, I'm more intrigued by the 23 per cent who are  
> apparently doing quite well for themselves.
> - Emo Philips
> <><><><><><><><><><><><><><><><><><>
> _______________________________________________
> Qna mailing list
> Qna at provue.com
> http://provue.com/mailman/listinfo/qna
>



More information about the Qna mailing list