Boost is a great set of libraries and it really boosts productivity. But debugging code that uses it is a total nightmare. Sure, stepping through twenty thousand header files can be a valuable intellectual exercise, but what if you need to do it over and over again?
Is there a developer-friendly way of just skipping the boost portion and having the debugger go straight to my code?
Visual Studio has a DebuggerStepThroughAttribute for .NET framework. Is there anything similar for native C++?
You can skip the boost namespace entirely by using the techniques described here. Just use something like:
boost\:\:.*=NoStepInto… in the relevant registry entry.
However if your code gets called from within boost (e.g. through a
boost::functionor similar) then your code will be skipped as well! I’ll be interested if someone can come up with a good solution for that problem…