Book a Demo

Please note : This help page is not for the latest version of Enterprise Architect. The latest help can be found here.

Prev Next

Detecting Memory Address Operations

Being able to detect where and when an area of memory is being read or written can be a great help for investigators, even when the code base is well understood. Without this tool, a C++ developer could have a potentially daunting task of tracking where and when a global variable is accessed, and debugging those functions. Data breakpoints allow a C++ programmer to track when a variable / memory location is read or when it is written. When the operation is detected, the debugger will halt the execution and the line of code following the operation will be displayed in the code editor.



Execute > Windows > Breakpoints

Detect operation on memory address



See also


Click the New icon button.


Enter the memory address to watch. You can copy an address from the Locals (Local Variables) window.

Adding a data breakpoint in Enterprise Architect


Select the operation to detect. If you select 'Write', the debugger will break when the address is written to. If you choose 'Read / Write', the debugger will notify you when the address is read or when it is written.


Select the action to perform. If you choose 'Break', the debugger will halt the program and the line of code will be shown in the editor. If you choose 'Trace', the debugger will not halt execution, but log any operation on the address as it occurs. This output is displayed in the Debugger Window.


The data breakpoint is added to the Breakpoints and Markers window.

VEA Data Breakpoint list


You can use the context menu on the data breakpoint to check the value at the memory address.

Raw memory inspection after data breakpoint


To delete a data breakpoint, select it in the Breakpoints and Markers window and press the Delete key. Alternatively, deselect the checkbox next to it. Data breakpoints are deleted when they are disabled; they do not persist as other breakpoints do.

System Requirements

Memory address breakpoints are supported in the C/C++ native debugger.