How to: Set an Address Breakpoint
This topic applies to:
Edition |
Visual Basic |
C# |
F# |
C++ |
Web Developer |
---|---|---|---|---|---|
Express |
|||||
Pro, Premium, and Ultimate |
You can set a breakpoint at a memory address in the Disassembly window. After a breakpoint is set, an address breakpoint can be edited in the Breakpoints window.
You can also set an address breakpoint on a function by using the Call Stack window. See How to: Set a Breakpoint on a Function Call from the Call Stack Window.
To set an address breakpoint
On the Debug menu, point to Windows, and then click Disassembly if the Disassembly window is not already visible.
In the Disassembly window, click a line of code, and then click Toggle Breakpoint on the Debug menu.
-or-
Right-click a line of code, and then select Insert Breakpoint.
Warning
Avoid setting breakpoints on system components when you are debugging mixed-mode (native and managed) code. Setting a breakpoint on a system component during mixed-mode debugging can cause the common language runtime to break and the debugger to stop responding. For more information, see Mixed-Mode Debugging.