How to: Set a Breakpoint on a Function Call from the Call Stack Window
This topic applies to:
Pro and Team
Does not apply
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.
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.
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.