How to: Set an Address Breakpoint
This topic applies to:
Edition |
Visual Basic |
C# |
C++ |
Web Developer |
---|---|---|---|---|
Express |
||||
Standard |
||||
Pro and Team |
Table legend:
Applies |
|
Does not apply |
|
Command or commands hidden by default. |
You can set a breakpoint at a memory address in the Disassembly window. Once set, an address breakpoint can be edited in the Breakpoints window. You can also set an address breakpoint on a function 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
From the Debug menu, choose Debug windows and choose Disassembly (if the Disassembly window is not already visible).
In the Disassembly window, click on a line of code and choose Toggle Breakpoint from the Debug menu,
—or—
right-click on a line of code and choose Insert Breakpoint from the shortcut menu (Breakpoint submenu)
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 hang. For more information, see Mixed-Mode Debugging.