Setting Breakpoints

To control the execution of your application, you set breakpoints, which are places where the code should pause and call the debugger. You can set a breakpoint at design time or at run time. Remember that in general not all processes reach the breakpoint some of them may stop at communication points or just pass the line containing breakpoint.

NOTE: You can set a breakpoint at run time only when all processes are stopped.

To set a breakpoint

In the Text Editor window, move the insertion point to the line of code where you want to set a breakpoint and right-click in the selection margin.

From the context menu choose:

When you set a breakpoint, a dot is displayed in the selection margin of the Text Editor window next to the line containing the breakpoint. The dot is red if the breakpoint is enabled and gray if disabled.