PSDebugContext Class

 

Updated: April 27, 2016

Applies To: Windows PowerShell

Provides information about why Windows PowerShell entered the debugger. This class is introduced in Windows PowerShell 2.0.

Namespace:   System.Management.Automation
Assembly:  System.Management.Automation (in System.Management.Automation.dll)

System.Object
  System.Management.Automation.PSDebugContext

public class PSDebugContext

NameDescription
System_CAPS_pubmethodPSDebugContext(InvocationInfo, List<Breakpoint>)

Creates a new instance of the PSDebugContext class, using the specified invocation infomration and breakpoints.

NameDescription
System_CAPS_pubpropertyBreakpoints

Gets the breakpoints where execution was suspended. This property is introduced in Windows PowerShell 2.0.

System_CAPS_pubpropertyInvocationInfo

Gets information about how the current command was invoked. This information includes the name of the command, the string used to invoke the command, and where the command is in the pipeline. This property is introduced in Windows PowerShell 2.0.

NameDescription
System_CAPS_pubmethodEquals(Object)

(Inherited from Object.)

System_CAPS_protmethodFinalize()

(Inherited from Object.)

System_CAPS_pubmethodGetHashCode()

(Inherited from Object.)

System_CAPS_pubmethodGetType()

(Inherited from Object.)

System_CAPS_protmethodMemberwiseClone()

(Inherited from Object.)

System_CAPS_pubmethodToString()

(Inherited from Object.)

This information is also available through the $PSDebugContext environment variable.

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

Return to top
Show: