Reputation: 1813
I have a small logging method that I don't want to step through in normal debugging sessions in Visual Studio. I thought that there was an attribute to mark methods in a way that the debugger would automatically skip over them, but I can't find it in MSDN, and my googling hasn't turned up anything useful. Am I misremembering things? Is there an attribute that does this?
Upvotes: 1
Views: 1314
Reputation: 251242
There is an attribute you can use called DebuggerStepThrough (MSDN):
using System.Diagnostics
...
[DebuggerStepThrough]
public void MyMethod() {
...
Upvotes: 9