Debugger Class

 

Updated: April 27, 2016

Applies To: Windows PowerShell

Base class for all PowerShell debuggers.

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::Debugger

public ref class Debugger abstract 

NameDescription
System_CAPS_protmethodDebugger()

Initializes a new instance of the Debugger class.

This element is introduced in Windows PowerShell 4.0.

NameDescription
System_CAPS_protpropertyDebuggerStopped

Whether the DebuggerStop event is raised.

This element is introduced in Windows PowerShell 4.0.

System_CAPS_pubpropertyDebugMode

Gets the current debugger mode for the Windows PowerShell debugger.

This element is introduced in Windows PowerShell 4.0.

System_CAPS_pubpropertyInBreakpoint

Whether the debugger is stopped at a breakpoint.

This element is introduced in Windows PowerShell 5.0.

System_CAPS_pubpropertyInstanceId

Gets the InstanceId.

This element is introduced in Windows PowerShell 5.0.

System_CAPS_pubpropertyIsActive

Whether the debugger is active and has breakpoints set.

Introduced in Windows PowerShell 4.0.

NameDescription
System_CAPS_pubmethodEquals(Object^)

(Inherited from Object.)

System_CAPS_protmethodFinalize()

(Inherited from Object.)

System_CAPS_pubmethodGetCallStack()

Returns an IEnumerable of CallStackFrame objects.

Introduced in Windows PowerShell 4.0.

System_CAPS_pubmethodGetDebuggerStopArgs()

Returns current debugger stop event arguments if debugger is in debug stop state. Otherwise returns null.

This element is introduced in Windows PowerShell 4.0.

System_CAPS_pubmethodGetHashCode()

(Inherited from Object.)

System_CAPS_pubmethodGetType()

(Inherited from Object.)

System_CAPS_protmethodIsDebuggerBreakpointUpdatedEventSubscribed()

Whether the debugger is suscribed to the BreakpointUpdated event.

This element is introduced in Windows PowerShell 5.0.

System_CAPS_protmethodIsDebuggerStopEventSubscribed()

Whether the Debugger class subscribes to the DebuggerStop event.

This element is introduced in Windows PowerShell 4.0.

System_CAPS_protmethodMemberwiseClone()

(Inherited from Object.)

System_CAPS_pubmethodProcessCommand(PSCommand^, PSDataCollection<PSObject^>^)

Evaluates provided command either as a debugger specific command or a PowerShell command.

Introduced in Windows PowerShell 4.0.

System_CAPS_protmethodRaiseBreakpointUpdatedEvent(BreakpointUpdatedEventArgs^)

Raises the BreakpointUpdated event when a breakpoint is updated.

This element is introduced in Windows PowerShell 4.0.

System_CAPS_protmethodRaiseDebuggerStopEvent(DebuggerStopEventArgs^)

Raises the DebuggerStop event when Windows PowerShell stops execution of a script and enters the debugger.

This element is introduced in Windows PowerShell 4.0.

System_CAPS_pubmethodResetCommandProcessorSource()

Resets the command processor source information. The source information is then updated with latest information on the next debug stop.

This element is introduced in Windows PowerShell 5.0.

System_CAPS_pubmethodSetBreakpoints(IEnumerable<Breakpoint^>^)

Adds the provided set of breakpoints to the debugger.

Introduced in Windows PowerShell 4.0.

System_CAPS_pubmethodSetDebuggerAction(DebuggerResumeAction)

Stops the debugger and specifies how the debugger will resume execution.

Introduced in Windows PowerShell 4.0.

System_CAPS_pubmethodSetDebuggerStepMode(Boolean)

Sets debugger stepping mode.

This element is introduced in Windows PowerShell 5.0.

System_CAPS_pubmethodSetDebugMode(DebugModes)

Sets the debugger mode.

This element is introduced in Windows PowerShell 4.0.

System_CAPS_pubmethodSetParent(Debugger^, IEnumerable<Breakpoint^>^, Nullable<DebuggerResumeAction>, PSHost^, PathInfo^)

Sets the parent debugger and breakpoints.

This element is introduced in Windows PowerShell 4.0.

System_CAPS_pubmethodSetParent(Debugger^, IEnumerable<Breakpoint^>^, Nullable<DebuggerResumeAction>, PSHost^, PathInfo^, Dictionary<String^, DebugSource^>^)

Sets the parent debugger, breakpoints, function source and other debugging context information.

This element is introduced in Windows PowerShell 5.0.

System_CAPS_pubmethodStopProcessCommand()

Returns current debugger stop event arguments if debugger is in debug stop state; otherwise returns null.

This element is introduced in Windows PowerShell 4.0.

System_CAPS_pubmethodToString()

(Inherited from Object.)

NameDescription
System_CAPS_pubeventBreakpointUpdated

Event raised when the breakpoint is updated, such as when it is enabled or disabled.

This class is introduced in Windows PowerShell 2.0.

System_CAPS_pubeventDebuggerStop

Event raised when the debugger hits a breakpoint or a step.

This event is introduced in Windows PowerShell 2.0.

The Windows PowerShell debugger allows the user to examine scripts, functions, commands, and expressions works while they are running. The debugger is started by adding breakpoints to the code to be examined. For more information about the Windows PowerShell debugger, see about_Debuggers [v4] in the Microsoft TechNet library.

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: