Edit

Share via


Get-RunspaceDebug

Shows runspace debugging options.

Syntax

RunspaceNameParameterSet (Default)

Get-RunspaceDebug
    [[-RunspaceName] <String[]>]
    [<CommonParameters>]

RunspaceParameterSet

Get-RunspaceDebug
    [-Runspace] <Runspace[]>
    [<CommonParameters>]

RunspaceIdParameterSet

Get-RunspaceDebug
    [-RunspaceId] <Int32[]>
    [<CommonParameters>]

RunspaceInstanceIdParameterSet

Get-RunspaceDebug
    [-RunspaceInstanceId] <Guid[]>
    [<CommonParameters>]

ProcessNameParameterSet

Get-RunspaceDebug
    [[-ProcessName] <String>]
    [[-AppDomainName] <String[]>]
    [<CommonParameters>]

Description

The Get-RunspaceDebug cmdlet shows runspace debugging options.

Examples

1: Show the state of the default runspace debugger

Get-RunspaceDebug
 Id Name                 Enabled    BreakAll
 -- ----                 -------    --------
  1 Runspace1            False      False

Parameters

-AppDomainName

The name of the application domain that hosts the PowerShell runspace.

Parameter properties

Type:

String[]

Default value:None
Supports wildcards:False
DontShow:False

Parameter sets

ProcessNameParameterSet
Position:1
Mandatory:False
Value from pipeline:False
Value from pipeline by property name:False
Value from remaining arguments:False

-ProcessName

The name of the process that hosts the PowerShell runspace.

Parameter properties

Type:String
Default value:None
Supports wildcards:False
DontShow:False

Parameter sets

ProcessNameParameterSet
Position:0
Mandatory:False
Value from pipeline:False
Value from pipeline by property name:False
Value from remaining arguments:False

-Runspace

One or more Runspace objects to be disabled.

Parameter properties

Type:

Runspace[]

Default value:None
Supports wildcards:False
DontShow:False

Parameter sets

RunspaceParameterSet
Position:0
Mandatory:True
Value from pipeline:True
Value from pipeline by property name:True
Value from remaining arguments:False

-RunspaceId

One or more Runspace Id numbers to be disabled.

Parameter properties

Type:

Int32[]

Default value:None
Supports wildcards:False
DontShow:False

Parameter sets

RunspaceIdParameterSet
Position:0
Mandatory:True
Value from pipeline:False
Value from pipeline by property name:False
Value from remaining arguments:False

-RunspaceInstanceId

One or more Runspace GUIDs to be disabled.

Parameter properties

Type:

Guid[]

Default value:None
Supports wildcards:False
DontShow:False

Parameter sets

RunspaceInstanceIdParameterSet
Position:0
Mandatory:True
Value from pipeline:False
Value from pipeline by property name:False
Value from remaining arguments:False

-RunspaceName

One or more Runspace names to be disabled.

Parameter properties

Type:

String[]

Default value:None
Supports wildcards:False
DontShow:False

Parameter sets

RunspaceNameParameterSet
Position:0
Mandatory:False
Value from pipeline:False
Value from pipeline by property name:False
Value from remaining arguments:False

CommonParameters

This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutBuffer, -OutVariable, -PipelineVariable, -ProgressAction, -Verbose, -WarningAction, and -WarningVariable. For more information, see about_CommonParameters.