让 VS10 调试器跳转某些库时遇到问题?
使用 boost 序列化库时,我遇到调试器错误。为了解决这些问题,我试图让 Visual Studio 10 跳过调试 boost 库,在阅读了一些内容后,我发现了如何实现这一点,但解决方案不知何故不起作用。这是注册表的图片。
>我已经读过这是这样做的方法,但是在 VS10 中调试时,它仍然在 boost 文件上给我错误。有人可以看到我做错了什么吗?
编辑
发现解决方案存在问题,问题出在 regedit 的 32 位部分,而不是我的系统所在的 64 位部分。然而改变这一点并没有解决问题。这是一张新图片。
I'm getting debugger errors when using the boost serilazation library. To fix these I am trying to get Visual Studio 10 to skip the debugging the boost library, after som reading I found out how this coult be achived but the solution somehow doesn't work. Here is a picture of the regedit.
From what i've read this is the way to do it, but when debugging in VS10 it still gives me errors on boost files. Can someone see what i've done wrong?
EDIT
Found a problem with the solution, was in the 32bit part of regedit instead of 64 which my system is on. Changing this didn't however solve the problem. Here is a new picture.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
这是一篇相关文章,可以回答您的问题。
单步执行时如何跳过 VS 2008 中的常见类在?
您可以通过在注册表中输入条目来做到这一点(我知道,这很糟糕)。您正在寻找的密钥从 32 位到 64 位系统不等。对于 32 位系统,密钥为
HKEY_LOCAL_MACHINE\Software\Microsoft\VisualStudio\9.0\NativeDE\StepOver
如果您运行的是 64 位操作系统和 32 位 Visual Studio,密钥为
HKEY_LOCAL_MACHINE\SOFTWARE\Wow6432Node\Microsoft\VisualStudio\9.0 \NativeDE\StepOver
Wow6432Node 密钥是运行 32 位应用程序的密钥在 64 位系统上。 (旁注:在注册表中搜索“_RTC_CheckEsp”可能会引导您到正确的位置,它是 Visual Studio 9 中的默认条目)
您应该熟悉语法,但作为示例,一个简单的条目可以是字符串值提升: :.*=NoStepInto 这将避免调试器单步进入 Boost。请参阅http://www.cprogramming.com/debugging/visual -studio-msvc-debugging-NoStepInto.html 一些其他示例。
Here is a related post that will answer your question.
How to skip common classes in VS 2008 when stepping in?
You can do this by entering entries into the registry (I know, it sucks). The key you are looking for varies from 32 to 64 bit systems. For 32-bit systems the key is
HKEY_LOCAL_MACHINE\Software\Microsoft\VisualStudio\9.0\NativeDE\StepOver
If you're running a 64 bit OS and a 32 bit Visual Studio the key is
HKEY_LOCAL_MACHINE\SOFTWARE\Wow6432Node\Microsoft\VisualStudio\9.0\NativeDE\StepOver
The Wow6432Node key is a key present for 32 bit applications running on 64 bit systems. (Sidenote: searching the registry for "_RTC_CheckEsp" probably will lead you to the right place, it's a default entry in Visual Studio 9)
The syntax should be familiar to you, but as an example, a simple entry could be string value boost::.*=NoStepInto which will avoid the debugger to step into Boost. See http://www.cprogramming.com/debugging/visual-studio-msvc-debugging-NoStepInto.html for some other examples.