Marcus' Macro Blog

Mostly tips, tutorials, articles and news about Macro Scheduler & Windows Automation
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.

[Post to Twitter] Tweet This

Related posts:

  1. Use the Debugger!
  2. Associating a File Extension with a Compiled Macro
  3. Multiple Monitors aid Productivity and Debugging
  4. Thou shalt not waste time doing repetitive and mundane tasks
  5. Twittering from Macro Scheduler with the Twitter API

Leave a Reply