[jawsscripts] Re: Debug Verbosity Setting

  • From: "Donald Marang" <donald.marang@xxxxxxxxx>
  • To: <jawsscripts@xxxxxxxxxxxxx>
  • Date: Tue, 5 May 2009 19:19:27 -0400

Happy to give back for a change!

Don Marang


----- Original Message ----- 
From: "Sean Randall" <seanr@xxxxxxxxxxxxxxx>
To: <jawsscripts@xxxxxxxxxxxxx>
Sent: Tuesday, May 05, 2009 6:12 PM
Subject: [jawsscripts] Re: Debug Verbosity Setting


> Don,
>
> Thanks a million for this.  I was truly getting sick of commenting out my
> sayStrings!
>
> A most informative and useful message.
> Sean.
>
> -----Original Message-----
> From: jawsscripts-bounce@xxxxxxxxxxxxx
> [mailto:jawsscripts-bounce@xxxxxxxxxxxxx] On Behalf Of Donald Marang
> Sent: 05 May 2009 21:01
> To: jawsscripts@xxxxxxxxxxxxx
> Subject: [jawsscripts] Debug Verbosity Setting
>
> With a little deduction and experimenting, I figured out how to use the
> OT_DEBUG output type.  In my application, I place debug messages like the
> following:
> SayMessage (OT_DEBUG, "Main window at start = " + IntToString (ghVCAMain),
> "Main = " + IntToString (ghVCAMain))
>
>
>
> Actually, I see no practical use of both a long and short messages.
> Apparently FS felt the same way and if both a long and short message are
> provided, the short message will always be used.  Therefore there is no
> sense in providing two messages, so only thee following is needed:
>
>
>
> SayMessage (OT_DEBUG, "Main window at start = " + IntToString (ghVCAMain))
>
>
>
> The Debug output type can not be enabled in the Verbosity settings of
> Configuration Manager, like Error or other messages.  It can be set 
> manually
> however, by adding the following lines to the configuration file for your
> application:
>
> [OutputModes]
> DEBUG=2|2|2|DEBUG Message
>
> If your configuration file already has an OutputModes section, just add 
> the
> second line.  To disable the debug statements, just put a semicolon (;) in
> front of the second line or delete these lines for normal operation.
>
> Using this method, I can leave the more informative debug statements in 
> the
> code and instantly enable or disable them.
> Don Marang
>
>
> __________
> Visit and contribute to The JAWS Script Repository http://jawsscripts.com
>
> View the list's information and change your settings at
> //www.freelists.org/list/jawsscripts
>
> __________
> Visit and contribute to The JAWS Script Repository http://jawsscripts.com
>
> View the list's information and change your settings at
> //www.freelists.org/list/jawsscripts
> 

__________ 
Visit and contribute to The JAWS Script Repository http://jawsscripts.com

View the list's information and change your settings at 
//www.freelists.org/list/jawsscripts

Other related posts: