Table of Contents

Class DebuggerStepperBoundaryAttribute

Namespace
System.Diagnostics
Assembly
mscorlib.dll

Indicates the code following the attribute is to be executed in run, not step, mode.

[AttributeUsage(AttributeTargets.Constructor|AttributeTargets.Method, Inherited = false)]
public sealed class DebuggerStepperBoundaryAttribute : Attribute
Inheritance
DebuggerStepperBoundaryAttribute
Inherited Members
Extension Methods

Remarks

The DebuggerStepperBoundaryAttribute attribute is used as an escape from the effect of a DebuggerNonUserCodeAttribute. 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. When context switches are made on a thread, the next user-supplied code module stepped into may not relate to the code that was in the process of being debugged. To avoid this debugging experience, use the DebuggerStepperBoundaryAttribute to escape from stepping through code to running code. For example, in Visual Studio 2005, encountering a DebuggerStepperBoundaryAttribute while stepping through code using the F10 key (or Step Over command) has the same effect as pressing the F5 key or using the Start Debugging command.

Constructors

DebuggerStepperBoundaryAttribute()

Initializes a new instance of the DebuggerStepperBoundaryAttribute class.

public DebuggerStepperBoundaryAttribute()