Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Exclude class from debugging

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?

like image 870
Offler Avatar asked Apr 11 '13 08:04

Offler


2 Answers

You're probably looking for DebuggerStepThrough attribute.

like image 153
ken2k Avatar answered Sep 21 '22 13:09

ken2k


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.

like image 23
John Willemse Avatar answered Sep 21 '22 13:09

John Willemse