C # - Attribute to skip method when entering debug mode

Is there an attribute that I can use in a method so that when I run some code in debug mode, the Debugger remains outside the method?

+80
debugging c # attributes
Jan 15 '09 at 0:57
source share
3 answers
[DebuggerStepThrough] 

( linky )

+142
Jan 15 '09 at 0:59
source share

Do not forget to add:

 using System.Diagnostics; 
+13
Sep 22 2018-11-22T00:
source share

he wrote <DebuggerStepThrough()> _ in VB.NET . js

To use it, simply put on top of the method, for example:

 <DebuggerStepThrough()> _ Private Sub form_Paint(sender As Object, e As PaintEventArgs) Handles form.Paint ' Picasso End Sub 
+7
May 21 '14 at 12:41
source share



All Articles