System.Diagnostics.DebuggerStepperBoundaryAttribute Class

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

See Also: DebuggerStepperBoundaryAttribute Members

Syntax

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

Remarks

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.

Requirements

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