Megosztás a következőn keresztül:


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

This topic applies to:

Edition

Visual Basic

C#

C++

Web Developer

Express

Topic does not apply Topic does not apply Topic does not apply Topic does not apply

Standard

Topic applies

Topic 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.

This feature is not available for for T-SQL, Script in Internet Explorer, or ASP.

This topic describes how to set a breakpoint on a specific call to a function, using the Call Stack window. The breakpoint is set at the next executable instruction in the function call. If you want to set a breakpoint on the function itself, rather than a specific call to the function, see How to: Set a Function Breakpoint.

Note

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 breakpoint on a function call

  • In the Call Stack window, while in break mode, right-click the function call and choose Insert Breakpoint from the shortcut menu (Breakpoint submenu).

    A breakpoint symbol appears in the left margin next to the function call name.

When you view the breakpoint properties, this breakpoint appears as an address breakpoint with a memory location corresponding to the next executable instruction in the function.

Warning

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