Home > .Net CLR > Stop debugger from step through

Stop debugger from step through

Debugging projects can be difficult when the code step through lots of classes or functions that is not necessary to debug. The following attribute make debugger to step over any decorated source code.

AttributeTargets.Constructor|AttributeTargets.Method, Inherited = false)]
public sealed class DebuggerStepThroughAttribute: Attribute


Also these are other useful attributes to know:

Determines if and how a member is displayed in the debugger variable windows.

Determines how a class or field is displayed in the debugger variable windows.

Debugger does not stop in a method marked with this attribute and does not allow a breakpoint to be set in the method.

This attribute suppresses the display of these adjunct types and members in the debugger window and automatically steps through, rather than into, designer provided code.

When executing within the boundaries of the DebuggerNonUserCodeAttribute, designer-provided code is executed as a step-through until the next user supplied code is encountered.

It allow to overwrite how a given type is shown in debugger.

Associate a Visualizer for a given class. For more information refer to http://msdn2.microsoft.com/en-us/library/e2zc529c.aspx


Related link: http://msdn2.microsoft.com/en-us/library/system.diagnostics.aspx

Categories: .Net CLR
  1. No comments yet.
  1. No trackbacks yet.

Leave a Reply

Please log in using one of these methods to post your comment:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

%d bloggers like this: