Dinaiz Dinaiz - 4 months ago 31
C++ Question

Visual studio 2015 . How to *not* step in certain functions?

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 */


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


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


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