How to: Set a Simple Breakpoint
This topic applies to:
Edition |
Visual Basic |
C# |
F# |
C++ |
Web Developer |
---|---|---|---|---|---|
Express |
|||||
Pro, Premium, and Ultimate |
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 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
In a source window, right-click a line of executable code where you want to set a breakpoint.
On the shortcut menu, click Breakpoint, and then click Insert Breakpoint.
To set a simple breakpoint on the Debug menu
In a source window, click a line of executable code where you want to set a breakpoint.
On the Debug menu, click Toggle Breakpoint.