Tip: how not to step into code in visual studio

At my job, I heavily rely on working with the STL and the Boost libraries.
During debugging, which as we all know takes up a certain amount of ones time, I found myself seemingly more often than not looking at STL or Boost code while stepping through.

At some point I really got tired of hitting SHIFT+F11 to jump out of another section of code that I knew, wasn’t really the problem.

I found an interesting article about preventing the visual studio debugger from stepping into certain areas of your code, that I would like to share with you:
http://blogs.msdn.com/andypennell/archive/2004/02/06/69004.aspx

Note that in case you use a x64 based system you will need to place the registry information into the HKLM\Software\Wow6432Node\Microsoft\VisualStudio\8.0\NativeDE entry (you can read more about this at http://support.microsoft.com/kb/896459).

So this is what I use on my Windows7 x64 installation running Visual Studio 2005:

Windows Registry Editor Version 5.00
 
[HKEY_LOCAL_MACHINE\SOFTWARE\Wow6432Node\Microsoft\VisualStudio\8.0\NativeDE\StepOver]
"no boost"="boost\\:\\:.*=NoStepInto"
"no stl"="std\\:\\:.*=NoStepInto"

About this entry