Function

The Breakpoints panel provides information on all breakpoints that are currently defined - either within the open source code documents for any embedded project or in one of the memory address spaces associated with a processor whose embedded code is currently being debugged.

Content and Use

The following two types of breakpoint can be defined:

Any breakpoints that are currently defined in any open embedded project source code documents (*.C, *.asm), or processor memory spaces will be listed in the panel. For each breakpoint entry, the following information is available:


For a memory address breakpoint, the specific memory space (e.g. sfr) and address in that space (e.g. 0x3) at which the breakpoint has been specified, will be displayed. Additional information is displayed to indicate when the breakpoint is applied - r (when the address is read), w (when the address is written), or rw (when the address is read or written).

A small icon to the left of the filename/address is used to indicate the status of the breakpoint:

-

Source code breakpoint - valid and currently enabled

-

Source code breakpoint - valid and currently disabled

-

Source code breakpoint - invalid

-

Memory address breakpoint - currently enabled

-

Memory address breakpoint - currently disabled

The icons used to represent source code breakpoints are also used when marking breakpoints on the source code document itself. The line of code to which a breakpoint applies is also highlighted using the associated breakpoint status color, as illustrated in the following image.

The specific address to which a memory address breakpoint applies is also highlighted using the associated breakpoint status color, as illustrated in the following image:

Double-clicking on a source code breakpoint entry in the panel will make the associated source document the active document in the design editor window, placing the text cursor at the beginning of the line of code to which the breakpoint applies.
Double-clicking on a memory address breakpoint entry in the panel will open the relevant panel for the memory space and select the address to which the breakpoint applies.

Right-click Menu

The right-click pop-up menu for the panel provides the following commands:

Use this dialog to edit the definition of the breakpoint as required.

Notes

As source document breakpoints can only be valid when placed on executable lines of code, these visual indicators should be used to effectively (and correctly) define such breakpoints.


A memory address breakpoint can be applied to a single address or a range of addresses. For an address range, the lower and upper addresses will be separated by a hyphen:

1) It has been placed on a line of source code that is non-executable
2) It resides in a source code document that is not part of the source for the embedded project currently being debugged.

See Also

Altium Designer Panels

Working with Panels