| |||
| Home > Working with Macros > Using macros > Testing a macro | |||
To test the macro you have created, you execute the loaded image and then enter the macro on the RealView Debugger command line:
Click on the Src tab to view
the source file dhry_1.c.
Set a default breakpoint by double-clicking on line 187.
Click Go to start execution.
When asked for the number of runs, use a small number, for example 5000.
When the program reaches the breakpoint, enter the following command and press Enter:
tutorial(Int_2_Loc)
This displays the current value of the variable Int_2_Loc in
the Output pane.
Step through the program a few more times using the macro to monitor the variable. You can use the up arrow to step back through the commands already submitted on the command line.