Setting breakpoints
Various ways to set a breakpoint
You can set a breakpoint in various ways:
Toggling a simple code breakpoint.
Using the New Breakpoints dialog box and the Edit Breakpoints dialog box available from the context menus in the editor window, Breakpoints window, and in the Disassembly window. The dialog boxes give you access to all breakpoint options.
Setting a data breakpoint on a memory area directly in the Memory window.
Using predefined system macros for setting breakpoints, which allows automation.
The different methods offer different levels of simplicity, complexity, and automation.
Toggling a simple code breakpoint
Toggling a code breakpoint is a quick method of setting a breakpoint. The following methods are available both in the editor window and in the Disassembly window:
Click in the gray left-side margin of the window
Place the insertion point in the C source statement or assembler instruction where you want the breakpoint, and click
the Toggle Breakpoint button in the toolbarChoose Edit>Toggle Breakpoint
Right-click and choose Toggle Breakpoint from the context menu.