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]
.
精彩评论