DebuggerStepperBoundaryAttribute Class

Updated: January 2010

Indicates that the code following the attribute is to be executed in run mode, not step mode. This class cannot be inherited.

Namespace:  System.Diagnostics
Assembly:  mscorlib (in mscorlib.dll)

[SerializableAttribute]
[ComVisibleAttribute(true)]
[AttributeUsageAttribute(AttributeTargets.Constructor|AttributeTargets.Method, Inherited = false)]
public sealed class DebuggerStepperBoundaryAttribute : Attribute

The DebuggerStepperBoundaryAttribute attribute is used to escape from the effect of a DebuggerNonUserCodeAttribute attribute. When designer-provided code executes within the boundaries of the DebuggerNonUserCodeAttribute, the code is executed in step mode 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 the Visual Studio debugger, encountering a DebuggerStepperBoundaryAttribute while stepping through code by using the F10 key (or Step Over command) has the same effect as pressing the F5 key or using the Start Debugging command.

System.Object
  System.Attribute
    System.Diagnostics.DebuggerStepperBoundaryAttribute

Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.

Windows 7, Windows Vista, Windows XP SP2, Windows XP Media Center Edition, Windows XP Professional x64 Edition, Windows XP Starter Edition, Windows Server 2008 R2, Windows Server 2008, Windows Server 2003, Windows Server 2000 SP4, Windows Millennium Edition, Windows 98

The .NET Framework and .NET Compact Framework do not support all versions of every platform. For a list of the supported versions, see .NET Framework System Requirements.

.NET Framework

Supported in: 3.5, 3.0, 2.0

Date

History

Reason

January 2010

Removed reference to specific version of Visual Studio.

Customer feedback.

Was this page helpful?
(1500 characters remaining)
Thank you for your feedback

Community Additions

ADD
Show:
© 2014 Microsoft