避免在Visual Studio 2008调试器中单步执行c ++ std头文件

时间:2010-07-29 07:18:17

标签: c++ visual-studio-2008 stl debugging

  

可能重复:
  Is there a way to automatically avoiding stepping into certain functions in Visual Studio?

早上好,

我正在寻找一种方法来告诉调试器避免在调试代码时插入一些我不感兴趣的头文件。

示例:当我将std :: string作为函数的参数并且我只想进入我的函数时,我首先进入stl字符串代码。但我想我永远不会在stl头文件中找到我的错误,因此我想告诉VS完全忽略这些文件。

有办法吗?这将节省很多Shift-F11 + F11击键。 : - )

托马斯

1 个答案:

答案 0 :(得分:1)

据我所知,没有解决方案可以排除头文件。 但是,您可以定义始终被逐步执行的代码。 请参阅:Is there a way to automatically avoiding stepping into certain functions in Visual Studio?