Exclude class from debugging

I remember that there was some type of decorator to exclude certain classes from showing during debugging.

Cause:

They have several classes. If the debugger switches to another class (thread) during debugging, this can be very annoying. Some helper classes should rather be stepepd.

But I just can't find this decorator anywhere. Does anyone remember how to exclude a file so that the debugger does not enter it?

+5
source share
3 answers

You are looking for DebuggerStepThroughAttribute .

class, a method, a struct constructor. , , , .

+4
+7

Attribute exists DebuggerStepThrough: class DebuggerStepThroughAttribute

Instructs the debugger to execute the code instead of a step into the code. This class cannot be inherited.

It can be applied to the class, struct, constructor, and method.

+2
source

All Articles