Home of Macro Scheduler - Macro Tools and Automation Software
Marcus’ Macro Blog
Mostly tips, tutorials, articles and news about Macro Scheduler & Windows Automation
Download Macro Scheduler
Free 30 Day Trial

Debug, Debug, Debug

September 12th, 2007 by Marcus Tettmar

Many support requests and forum posts I see include a script snippet and a statement like “this value is wrong” or “the if statement says false but it should be true”. So we make an intelligent guess and say “so perhaps the value you are comparing isn’t what you think it is. Use the debugger”.

Stepping through the debugger reveals answers to problems like this quickly. Another way of checking values is to use a diagnostic message box. Whack a line like this into the script:

MessageModal>%MyVariable%

And see if MyVariable is what you are expecting.

Here’s an article I wrote some time ago on how to use the debugger.

http://www.mjtnet.com/blog/2006/05/17/use-the-debugger/

Use it. Debug. Debug. Debug. Please.

Bookmark this at:
    Bookmark Debug, Debug, Debug at del.icio.us    Digg Debug, Debug, Debug at Digg.com    Bookmark Debug, Debug, Debug at Spurl.net    Bookmark Debug, Debug, Debug at Simpy.com    Bookmark Debug, Debug, Debug at NewsVine    Blink this Debug, Debug, Debug at blinklist.com    Bookmark Debug, Debug, Debug at Furl.net    Bookmark Debug, Debug, Debug at reddit.com    Fark Debug, Debug, Debug at Fark.com    Bookmark Debug, Debug, Debug at YahooMyWeb

Leave a Reply

Sitemap | Privacy Policy | © MJT Net Ltd 1997-2008 All Rights Reserved.

Windows Vista and the Windows logo are trademarks or registered trademarks of Microsoft Corporation in the United States and/or other countries.