User manual

UM0036 Basic debugging features
Doc ID 7705 Rev 11 183/385
To restore a previously saved memory layout:
a) Select File>Restore layout from the contextual menu. The Restore memory
configuration dialog box opens as shown in Figure 128.
Figure 128. Restore memory configuration dialog box
b) Browse for the memory file that you want to restore. Click Open.
5.8 Instruction breakpoints
Instruction breakpoints are markers that stop program execution when a specific instruction
is reached. Instruction breakpoints may be set on any C or assembler instruction. If a
condition and/or a counter is set on an instruction breakpoint, program execution is always
stopped to evaluate the condition/counter. If the evaluation returns the Boolean value
FALSE, execution is resumed after a brief suspension. An instruction breakpoint halts the
program just before the specified instruction is executed.
Note: When you impose conditions or a counter condition on an instruction breakpoint, the
program will not run in real-time.
This section provides information about using instruction breakpoints, including:
Setting an instruction breakpoint
Viewing the instruction breakpoints
Setting counters and conditions
Showing breakpoints
5.8.1 Setting an instruction breakpoint
Instruction breakpoints are set in the Editor or Disassembler windows by selecting
File>Insert/Remove Breakpoint from the main menu bar.
The Editor window displays source code and enables a breakpoint to be set on a chosen
source-code line. The Disassembly window permits a breakpoint to be set on a line of
disassembled code.
You can see the markers for the instruction breakpoint that you have set in the Instruction
Breakpoints window (see Section 5.8.2: Viewing the instruction breakpoints) and in the
Debug Margin of the Editor window (see Section 5.4.1: Editor debug margin on page 172).