This documentation is archived and is not being maintained.

How to: Step Into a Specific Function 

This feature is available for native code only.

When you are stepping into a nested function call, you can use Step Into Specific, located on the shortcut menu, to choose which function you want to step into. For example, on a call to Func1(Func2()), you could choose to step into Func1 or Func2. This command works for any number of nesting levels.

You cannot use Step Into Specific with C++ virtual functions.


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 step into a specific function

  1. Advance the execution point to the function call you want to step into. (You might use a breakpoint, Step Into, Step Over, or Run To Cursor.)

  2. Right-click the source window to open the shortcut menu.

  3. From the shortcut menu, click Step Into Specific and choose the function you want from the submenu.

    The debugger executes the function call and breaks at the beginning of the selected function. The Step Into Specific command appears on the shortcut menu only if the execution point is located on a line of code that contains a nested function.

See Also