This documentation is archived and is not being maintained.

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

This topic applies to:

Edition

Visual Basic

C#

F#

C++

Web Developer

Express

Topic does not applyTopic does not applyTopic does not applyTopic appliesTopic does not apply

Pro, Premium, and Ultimate

Topic applies

Topic applies

Topic applies

Topic applies

Topic applies

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

This topic describes how to set a breakpoint on a specific call to a function by 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 on a specific call to the function, see How to: Set a Function Breakpoint.

NoteNote

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

  • In the Call Stack window, while in break mode, right-click the function call, and then click Insert Breakpoint on 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.

    Caution noteCaution

    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 stop responding. For more information, see Mixed-Mode Debugging.

Show: