CmdID / PowerShell / Cmdlets / Enable
Enable-RunspaceDebug
Enables debugging on runspaces where any breakpoint is preserved until a debugger is attached. PowerShell reference
From the PowerShell reference 7 parameters
What it does
Enables debugging on runspaces where any breakpoint is preserved until a debugger is attached. The Enable-RunspaceDebug cmdlet enables debugging on runspaces where any breakpoint is preserved until a debugger is attached.
Enable-RunspaceDebug [-BreakAll] [[-RunspaceName] <String[]>] [<CommonParameters>]Enable-RunspaceDebug [-BreakAll] [-Runspace] <Runspace[]> [<CommonParameters>]Enable-RunspaceDebug [-BreakAll] [-RunspaceId] <Int32[]> [<CommonParameters>]Enable-RunspaceDebug [-RunspaceInstanceId] <Guid[]> [<CommonParameters>]Enable-RunspaceDebug [[-ProcessName] <String>] [[-AppDomainName] <String[]>] [<CommonParameters>]
1: Enable the default runspace debugger
Enable-RunspaceDebug
Get-RunspaceDebugIdentifyIts page in the reference: Enable-RunspaceDebug.
Parameters
-AppDomainNameThe name of the application domain that hosts the PowerShell runspace.-BreakAllCauses any running command or script in the Runspace to stop in step mode, regardless of whether a debugger is currently attached. The script or command will remain stopped until a debugger is attached to debug the current stop point.-ProcessNameThe name of the process that hosts the PowerShell runspace.-RunspaceOne or more Runspace objects to be disabled.-RunspaceIdOne or more Runspace Id numbers to be disabled.-RunspaceInstanceIdOne or more Runspace GUIDs to be disabled.-RunspaceNameOne or more Runspace names to be disabled.