Breakpoint Management
An at-line breakpoint suspends the program execution at a specific point, for checking the variables, memory, and correction of the program logic through preset settings. Breakpoints can be set in multiple places, for example, at the entry of function execution, or at a specific line of a file.
Adding a Breakpoint
To add a breakpoint, open the code to be debugged, select the line at which you want to add the breakpoint, and click the area next to the line number, as shown in Figure 1. After a breakpoint is added, the icon
is displayed next to the line number.
Deleting a Breakpoint
To delete a breakpoint, click the
icon on the left.
Suspending a Breakpoint
To use only some of the breakpoints without deleting the unneeded breakpoints during debugging, suspend the unneeded ones as follows:
next to the code line for which a breakpoint has been set and deselect Enabled in the displayed dialog box. You can see that
changes to
, and the suspended breakpoint does not take effect during debugging next time.
Enabling a Breakpoint
To enable suspended breakpoints during new debugging, perform the following operations:
next to a suspended breakpoint and select Enabled in the displayed dialog box. You can see that
changes to
, and the newly enabled breakpoint takes effect during debugging next time.
Restart of MindStudio IDE or the project does not affect the states or the number of breakpoints set in the current project.
Viewing Breakpoints
Click
in the upper left corner of the project page. On the menu bar that is displayed, choose . You can view all breakpoints that are set.
Click on the breakpoint page. The dialog box for viewing breakpoints is displayed, as shown in Figure 4.
In the preceding figure, area 1 is a breakpoint list that contains all breakpoints set in the current code. Area 2 contains the breakpoint Enabled and Suspend execution functions. Area 3 is the code preview.
Use the functions as follows:
- In the breakpoint list, if you select the check box on the left of a breakpoint, the Enabled option is selected in area 2 and the
icon is displayed next to the corresponding code line in the code review area. If you deselect the check box, the Enabled option is deselected in area 2, and the
icon is displayed next to the corresponding code line in the code review area. - To delete a breakpoint, select the breakpoint in the breakpoint list and click
. In the code preview area, the breakpoint icon at the corresponding code line is deleted accordingly. - To add a breakpoint, directly click a code line number in the code preview area. Then, information about this breakpoint is automatically added to the breakpoint list.

