Exclude class from debugging

c#, visual-studio

Solution

You are looking for the DebuggerStepThroughAttribute.

You can apply this attribute to a `class`, a `method`, a `struct` or a `constructor`. Remember that the debugger will always step through the code that is flagged with this attribute, even if you put a breakpoint in it.

Problem

I remember that there was some type of decorator to exclude certain classes from being show while debugging. Reason: Have multiple classes. If debugger jumps to another class (thread) during debugging, that can be very anoying. Some helper classes should rather be stepepd over. But I just can't find this decorator anywhere. Does anyone remember how to exclude a file so that debugger does not step into it?

Original source