Best way to track variables for debug?

Just to offer my two cents: I use @DanThomas’s favorite action to create two actions and group them together:

  1. Show variables in window.
  2. Cancel macro.

I insert wherever I want and run the macro. Before running, of course I edit the show variable in window to show the variables I want to display, as many as I want.

The macro will run until it displays the variables in window and cancel the macro.

I found it is better than the debugger. Maybe it was because I was not familiar with it, with debugger I could either only do one step at a time, or run the macro to the end.

But by inserting the group I said above, I can make it go through the actions instantly, and show the variables I want to see, and cancel the macro right there.

Then I can cut the group and run the complete macro to test it. If the result is still not what I expected, I will paste the group to a later point of the macro and repeat the previous steps.

3 Likes