Dinaiz
Dinaiz

Reputation: 2233

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

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

Upvotes: 3

Views: 845

Answers (1)

Dinaiz
Dinaiz

Reputation: 2233

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

Upvotes: 6

Related Questions