Share via


Setting a Breakpoint at a Source Code Line

Other versions of this page are also available for the following:

Windows Mobile SupportedWindows Embedded CE Supported

8/27/2008

You can set a breakpoint at any line of source code.

To set a breakpoint at a source code line

  1. In a source code window, move the insertion point to the line where you want the application to break.

    To set a breakpoint in a statement that spans two or more lines, move the insertion point to the last line of the statement.

  2. From the Debug menu, choose New Breakpoints.

  3. In the New Breakpoint Dialog Box, enter the location to insert the breakpoint.

  4. Choose OK.

    Note

    When you set a breakpoint in source code, the color of the breakpoint glyph indicates the status of the breakpoint. A hollow circle with a caution triangle, for example, indicates that this breakpoint is not yet instantiated.

See Also

Other Resources