3

I'd like to configure the VS2015 debugger so that when I'm stepping in into some code (F11), it steps through certain functions .

For example, let's say there is a template class SmartPointer which has an overloaded member -> .

If I have the following statement :

SmartPointer<SomeClass> ptr;
/* initialize ptr */

ptr->method();

The debugger will step into SmartPointer::operator->, exit, then the into method(). I'd like to directly step into method().

Is this possible ?

EDIT : The so called duplicate isn't one because it doesn't work with vs2013 or 2015

Dinaiz
  • 2,213
  • 4
  • 22
  • 32

1 Answers1

6

Ok I actually found the solution. You have to edit as an administrator:

C:\Program Files (x86)\Microsoft Visual Studio 14.0\Common7\Packages\Debugger\Visualizers\default.natstepfilter

or

C:\Program Files\Microsoft Visual Studio 14.0\Common7\Packages\Debugger\Visualizers\default.natstepfilter

depending if you're under a 64 or 32 bit machine. The add a line like

<Function><Name>SomeFunction</Name><Action>NoStepInto</Action></Function>

HTH

Dinaiz
  • 2,213
  • 4
  • 22
  • 32