Stepping through a Macro in the Debugger

Navigation:  Macros > Testing Macros > Debugging Macros >

Stepping through a Macro in the Debugger

Previous pageReturn to chapter overviewNext page

If you have opted to invoke the debugger during diary generation, the debugger will appear the first time Q++Studio encounters a Macro token. The debugger will already have initialized all variables and the instruction pointer will be placed at the begin marker.



To move through the code you can use of of the buttons at the bottom of the debugger (or the corresponding keyboard shortcut) :


Next ASM Line


Use this to move by one line of compiled (also called assembler) code. When you use this mode, the tab containing the compiled code appears. You can switch back and forth between compiled and source code at any time.

Next Source Line


Use this to move by one line of source code. Note that even if you are using this mode, you can still select the compiled code tab and view the progress in the compiled code.

Next Breakpoint


Use this to move to the next line that corresponds to one of the breakpoints you set.

Next Token


Use this to execute the rest of the current token without pause, and only stop when Q++Studio reaches the next Macro token.


Stop Debug


Use this to stop debugging, but continue the diary generation. From this point on, diary generation will proceed as if you had opted not to invoke the debugger.

Abort Script


Use this to stop debugging and abort the Script immediately. This is useful when you realize, while debugging, that there is a important error which would make the diary generation output useless.



Note that the F7, F8 and F9 modes correspond to those used in the Macros Editor to step through your code at design-time (see Testing Macros).

Topic 127901 updated on 03-May-2018.
Topic URL: