Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How can I avoid debugging into Boost source code in Visual Studio?

Is there a way to exclude boost source code (or any other) from debuging? I don't want to step into boost internal source code.

for example:

boost::shared_ptr<Xyz> xyz(new Xyz());
xyz->someMethod();

when I want to step into Xyz::someMethod() using F11 the debugger first steps into boost/shared_ptr.hpp before I get into Xyz::someMethod()

like image 776
Ingemar Avatar asked Jan 27 '12 17:01

Ingemar


People also ask

How do I stop debugging in Visual Studio code?

To end a debugging session in Microsoft Visual Studio, from the Debug menu, choose Stop Debugging.

How do you disable the debug option Enable just my code?

To enable or disable Just My Code in Visual Studio, under Tools > Options (or Debug > Options) > Debugging > General, select or deselect Enable Just My Code.


2 Answers

Launch regedit and navigate to the following key:

Under a 32bit OS:

HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\VisualStudio\10.0\NativeDE\StepOver

Under a 64bit OS:

HKEY_LOCAL_MACHINE\SOFTWARE\Wow6432Node\Microsoft\VisualStudio\10.0\NativeDE\StepOver

Create a new string value there. Name it as you wish. Enter this as a content:

boost\:\:.*

(You need to restart Visual Studio.)

like image 90
tibur Avatar answered Oct 04 '22 06:10

tibur


For Visual Studio 2012:

As described here, this information is stored in the file C:\Program Files[ (x86)]\Microsoft Visual Studio 11.0\Common7\Packages\Debugger\Visualizers\default.natstepfilter

For boost::shared_ptr, this here has helped:

<Function><Name>boost::shared_ptr&lt;.*</Name><Action>NoStepInto</Action></Function>
like image 37
Jan L. Avatar answered Oct 04 '22 04:10

Jan L.