开发者

Can I apply an attribute like DebuggerHidden to skip over a function and all the function it calls?

As stated in the question I have a static function (for logging) which I want to skip during debugging, so far I annotated it with the DebuggerHidden attribute, but for some reason Visual Studio 2010 will then jump into the calls inside this function which are not annotated with that attribute.

The thing is I have to press F1开发者_Go百科1 a few times and I really don't to press F10 for these logging methods which I don't want to disable otherwise.


The [DebuggerStepThrough] attribute is semantically closer to what you're trying to achieve. But no, that doesn't fix it either. I agree that it would be desirable but have no insight how hard this is to implement in the debugger. Best place to find the guys that know this, and can actually fix it, is at connect.microsoft.com


Add [DebuggerStepThrough].

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜