如何跳过VS 2008中的常见课程? [英] How to skip common classes in VS 2008 when stepping in?
问题描述
如何在进入VS 2008调试器时跳过常用的类?
How can I skip common classes in VS 2008 debugger when stepping in?
例如,我不想让调试器进入任何std ::类。
For example, I do not want debugger to step into any of the std:: classes. How can I achieve that?
我在VS 2005和更早版本中找到了方法,但不是2008年
I've found ways of doing this in VS 2005 and earlier, but not 2008
推荐答案
您可以通过在注册表中输入条目(我知道,它很糟糕)。您正在寻找的密钥从32位到64位系统不等。对于32位系统,密钥为
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
HKEY_LOCAL_MACHINE\Software\Microsoft\VisualStudio\9.0\NativeDE\StepOver
如果您运行的是64位操作系统和32位Visual Studio,键是
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
Wow6432Node键是一个 32键的主键64位系统上运行的64位应用程序。
(Sidenote:在注册表中搜索_RTC_CheckEsp可能会引导你到正确的地方,这是Visual Studio 9中的默认条目)
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)
语法应该你应该很熟悉,但作为一个例子,一个简单的条目可以是字符串值 boost \:\:。* = NoStepInto
这将避免调试器步入Boost 。请参见 http://www.cprogramming.com/debugging/visual-studio-msvc-debugging -NoStepInto.html 。
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.
希望这有助于:)
这篇关于如何跳过VS 2008中的常见课程?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!