How to: Set a Simple Breakpoint

This topic applies to:

Edition

Visual Basic

C#

F#

C++

Web Developer

Express

Topic applies Topic applies Topic applies Topic applies Topic applies

Pro, Premium, and Ultimate

Topic applies

Topic applies

Topic applies

Topic applies

Topic applies

The Visual Studio debugger provides many ways to set breakpoints. This topic gives two quick ways to set simple breakpoints.

For other ways to set breakpoints, see the following topics:

How to: Set an Address Breakpoint

How to: Set a Function Breakpoint

How to: Set a Breakpoint on a Function Call from the Call Stack Window

For ways to set advanced features on a breakpoint, see the following topics:

How to: Specify a Hit Count

How to: Specify a Breakpoint Condition

How to: Specify a Breakpoint Filter

How to: Specify a Tracepoint/Breakpoint Action

Note

The dialog boxes and menu commands you see might differ from those described in Help, depending on your active settings or edition of Visual Studio. To change your settings, on the Tools menu, click Import and Export Settings. For more information, see Working with Settings.

To set a simple breakpoint on the shortcut menu

  1. In a source window, right-click a line of executable code where you want to set a breakpoint.

  2. On the shortcut menu, click Breakpoint, and then click Insert Breakpoint.

To set a simple breakpoint on the Debug menu

  1. In a source window, click a line of executable code where you want to set a breakpoint.

  2. On the Debug menu, click Toggle Breakpoint.

See Also

Other Resources

Breakpoints and Tracepoints