User guide
Nios II IDE Help System
Note: You must click in the margin to the left of the line of code. Clicking
within the editor does not affect breakpoints.
7. Click Resume in the Debug view. The processor resumes and then suspends
just before executing the line of code with the breakpoint. The editor displays an
arrow in the margin next to the suspended line of code. It might take a moment
for the program to execute to the breakpoint. Resume again to iterate through the
loop another time.
To remove a breakpoint:
Double-click the
breakpoint symbol in the margin. You can also right-click the
breakpoint symbol, and then click Toggle Breakpoint.
To disable a breakpoint:
Right-click the
breakpoint symbol, and then click Disable Breakpoint. Disabling
temporarily prevents a breakpoint from suspending the processor while leaving it in place
for future reference.
To use Breakpoints view:
1. Click the Breakpoints tab in the upper-right pane of the Debug perspective to
display the Breakpoints view. This view displays the location and status of all
breakpoints you have previously set on specific lines in the code every time the
processor hits a breakpoint or suspends. Values that have changed since the last
time the processor suspended display in red.
2. Right-click a breakpoint in the list, and then click Enable, Disable, or Remove to
change the status of the breakpoint.
The Breakpoints view also displays watchpoints. Refer to Related Topics
for more
information about debugging with watchpoints.
Several default views in the Debug perspective help you to organize, navigate, and analyze
your project during a debug session. The Nios II IDE updates each view every time the
processor hits a breakpoint or suspends. Values that have changed since the last time the
processor suspended display in red.
To view disassembly:
When the processor suspends, Disassembly view automatically appears. You can also open
the Disassembly view from the Window menu by pointing to Show View, and clicking
Disassembly. This view displays the assembly language instructions interleaved with the
C/C++ source code.
20