Enable-​Runspace​Debug

Enables debugging on runspaces where any breakpoint is preserved until a debugger is attached.

Syntax

Enable-RunspaceDebug
      [[-ProcessName] <String>]
      [[-AppDomainName] <String[]>]
      [<CommonParameters>]
Enable-RunspaceDebug
      [[-RunspaceName] <String[]>]
      [-BreakAll]
      [<CommonParameters>]
Enable-RunspaceDebug
      [-Runspace] <Runspace[]>
      [-BreakAll]
      [<CommonParameters>]
Enable-RunspaceDebug
      [-RunspaceId] <Int32[]>
      [-BreakAll]
      [<CommonParameters>]
Enable-RunspaceDebug
      [-RunspaceInstanceId] <Guid[]>
      [<CommonParameters>]

Description

The Enable-RunspaceDebug cmdlet enables debugging on runspaces where any breakpoint is preserved until a debugger is attached.

Examples

1:

2:

Required Parameters

-Runspace

Specifies a runspace object. The simplest way to provide a value for this parameter is to specify a variable that contains the results of a filtered Get-Runspace command

Type:Runspace[]
Position:0
Default value:None
Accept pipeline input:True (ByPropertyName, ByValue)
Accept wildcard characters:False
-RunspaceId

@{Text=}

Type:Int32[]
Position:0
Default value:None
Accept pipeline input:False
Accept wildcard characters:False
-RunspaceInstanceId

@{Text=}

Type:Guid[]
Position:0
Default value:None
Accept pipeline input:False
Accept wildcard characters:False

Optional Parameters

-AppDomainName

@{Text=}

Type:String[]
Position:1
Default value:None
Accept pipeline input:False
Accept wildcard characters:False
-BreakAll

@{Text=}

Type:SwitchParameter
Position:1
Default value:None
Accept pipeline input:False
Accept wildcard characters:False
-ProcessName

@{Text=}

Type:String
Position:0
Default value:None
Accept pipeline input:False
Accept wildcard characters:False
-RunspaceName

@{Text=}

Type:String[]
Position:0
Default value:None
Accept pipeline input:False
Accept wildcard characters:False