gpt4 book ai didi

c++ - 如何在调试时将 Visual Studio 配置为 'skip' 智能指针代码?

转载 作者:可可西里 更新时间:2023-11-01 18:39:44 34 4
gpt4 key购买 nike

我知道可以将 VS 配置为不单步执行特定函数(例如,您知道有用的无聊智能指针代码只是在调试时妨碍理解代码)。我如何为正在调试的代码中使用的自定义智能指针执行此操作?

最佳答案

http://www.cprogramming.com/debugging/visual-studio-msvc-debugging-NoStepInto.html

Visual Studio 9 (2010) Visual Studio 2010 introduced a few small changes--in particular, you should simply leave out "=NoStepInto" when you want to avoid stepping into a function:

10 string\:\:.*

Using "=NoStepInto" will simply not work. Secondly, you can now put your configuration in HKCU, rather than HKLM, allowing you to keep your settings from interfering with other users, but writing to HKEY_CURRENT_USER\Software\Microsoft\VisualStudio\10.0_Config\NativeDE\StepOver.

Lastly, I've heard reports that the old syntax using \oper no longer works. A simple workaround is to use:

.operator.

(Note the ommision of =NoStepInto as well.)

关于c++ - 如何在调试时将 Visual Studio 配置为 'skip' 智能指针代码?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/10331871/

34 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com