
Hitachi Embedded Workshop User Manual
211
The [Step Program] dialog box is displayed:
Figure 4.36 Step Program Dialog Box
[Steps]
Number of steps to be executed.
[Delay (seconds)]
Delay between steps when the program is automatically stepped.
Value 0 to 6 can be specified where value 0 indicates the longest delay.
[Step Over Calls]
Selecting this box steps over function calls.
[Source Level Step]
Selecting this box steps the program at the source level.
Clicking the [OK] button or pressing the Enter key starts step execution.
4.9
Stopping Your Program
This section describes how you can halt execution of your application's code. This section describes how to do
this directly by using the [Halt] button and by setting breakpoints at specific locations in your code.
4.9.1
Halting Execution
When your program is running, the [Halt] toolbar button is enabled [
] (a red STOP sign), and when the
program has stopped it is disabled [
] (the STOP sign is grayed out). Click on the [Halt] toolbar button, or
choose [Debug->Halt Program].
When the program has been stopped by [Halt], "Stop" is displayed in the [Debug] sheet of the [Output] window.
4.9.2
Standard Breakpoints (PC Breakpoints)
When you are trying to debug your program you will want to be able to stop the program running when it
reaches a specific point or points in your code. You can do this by setting a PC breakpoint on the line or
instruction at which to want the execution to stop. The following instructions will show you how to quickly set
and clear simple PC breakpoints. If more complex breakpoint operation is required, use the [Breakpoints]
window, which can be opened by clicking the
button or choosing [View -> Code -> Breakpoints]. For details,
refer to section 4.15, Using the Simulator/Debugger Breakpoints.
To set a PC breakpoint in the [Source] window
1. Make sure that the [Disassemble] or a [Source] window is open at the place you want to set a PC
breakpoint.