如何调试使用升压W / O失去理智code? [英] How to debug code that uses boost w/o losing sanity?

查看:94
本文介绍了如何调试使用升压W / O失去理智code?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

升压是一个伟大的库和它真正的提升的生产力。但是使用它调试code是一个总的噩梦。当然,通过两万头文件步进可以是一个有价值的智力运动,但如果你需要一遍又一遍呢?

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?

有刚刚跳过升压部,和调试器直接进入我的code开发人员友好的方式?

Is there a developer-friendly way of just skipping the boost portion and having the debugger go straight to my code?

Visual Studio中有一个<一个href=\"http://msdn.microsoft.com/en-us/library/system.diagnostics.debuggerstepthroughattribute.aspx\">DebuggerStepThroughAttribute针对.NET框架。有东西给本地C ++类似?

Visual Studio has a DebuggerStepThroughAttribute for .NET framework. Is there anything similar for native C++?

推荐答案

您完全可以通过使用描述的技术<一个跳过提升空间href=\"http://through-the-interface.typepad.com/through_the_interface/2006/07/advanced_visual_1.html\">here.只要使用类似:

You can skip the boost namespace entirely by using the techniques described here. Just use something like:

升压\\:\\:* = NoStepInto

...的相关注册表项。

... in the relevant registry entry.

但是,如果你code会从提振中调用(如通过的boost ::功能或类似的),那么你的code将被跳过,以及!我会兴趣,如果有人能拿出一个很好的解决方案的的问题...

However if your code gets called from within boost (e.g. through a boost::function or 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...

这篇关于如何调试使用升压W / O失去理智code?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆