System.Diagnostics.DebuggerStepperBoundaryAttribute Class

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

See Also: DebuggerStepperBoundaryAttribute Members


[System.AttributeUsage(System.AttributeTargets.Constructor | System.AttributeTargets.Method | System.AttributeTargets.All, Inherited=false)]
public sealed class DebuggerStepperBoundaryAttribute : Attribute


The System.Diagnostics.DebuggerStepperBoundaryAttribute attribute is used as an escape from the effect of a System.Diagnostics.DebuggerNonUserCodeAttribute. When executing within the boundaries of the System.Diagnostics.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 System.Diagnostics.DebuggerStepperBoundaryAttribute to escape from stepping through code to running code. For example, in vsprvslong, encountering a System.Diagnostics.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.


Namespace: System.Diagnostics
Assembly: mscorlib (in mscorlib.dll)
Assembly Versions:,
Since: .NET 2.0