Click to Rate and Give Feedback
MSDN
MSDN Library
Visual Studio 2008
Visual Studio
Debugger Roadmap
 How to: Set a Simple Breakpoint
This page is specific to
Microsoft Visual Studio 2008/.NET Framework 3.5

Other versions are also available for the following:
Visual Studio Debugger
How to: Set a Simple Breakpoint

This topic applies to:

Edition

Visual Basic

C#

C++

Web Developer

Express

Topic appliesTopic appliesTopic appliesTopic applies

Standard

Topic appliesTopic applies

Topic applies

Topic applies

Pro and Team

Topic applies

Topic applies

Topic applies

Topic applies

Table legend:

Topic applies

Applies

Topic does not apply

Does not apply

Topic applies but command hidden by default

Command or commands hidden by default.

The Visual Studio debugger provides many ways of setting breakpoints. This topic gives two quick ways of setting simple breakpoints.

For other ways of setting breakpoints, see:

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 of setting advanced features on a breakpoint, see:

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

k80ex6de.alert_note(en-us,VS.90).gifNote:

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

To set a simple breakpoint (from the shortcut menu)

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

  2. In the shortcut menu, go to Breakpoint and choose Insert Breakpoint.

To set a simple breakpoint (from the Debug menu)

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

  2. From the Debug menu, choose Toggle Breakpoint.

Tags What's this?: Add a tag
Community Content   What is Community Content?
Add new content RSS  Annotations
Processing
© 2008 Microsoft Corporation. All rights reserved. Terms of Use  |  Trademarks  |  Privacy Statement
Page view tracker