Partilhar via


How to: Set an Address Breakpoint 

This topic applies to:

Visual Studio Edition

Visual Basic

C#

C++

J#

Web Dev

Express

No

No

Yes

No

No

Standard

Yes

Yes

Yes

Yes

Yes

Pro/Team

Yes

Yes

Yes

Yes

Yes

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)

    Caution noteCaution

    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.

See Also

Concepts

Breakpoints and Tracepoints