Enable-RunspaceDebug
Enables debugging on runspaces where any breakpoint is preserved until a debugger is attached.
구문
RunspaceNameParameterSet (기본값)
Enable-RunspaceDebug
[[-RunspaceName] <String[]>]
[-BreakAll]
[<CommonParameters>]
RunspaceParameterSet
Enable-RunspaceDebug
[-Runspace] <Runspace[]>
[-BreakAll]
[<CommonParameters>]
RunspaceIdParameterSet
Enable-RunspaceDebug
[-RunspaceId] <Int32[]>
[-BreakAll]
[<CommonParameters>]
RunspaceInstanceIdParameterSet
Enable-RunspaceDebug
[-RunspaceInstanceId] <Guid[]>
[<CommonParameters>]
ProcessNameParameterSet
Enable-RunspaceDebug
[[-ProcessName] <String>]
[[-AppDomainName] <String[]>]
[<CommonParameters>]
Description
The Enable-RunspaceDebug
cmdlet enables debugging on runspaces where any breakpoint is preserved
until a debugger is attached.
예제
1: Enable the default runspace debugger
Enable-RunspaceDebug
Get-RunspaceDebug
Id Name Enabled BreakAll
-- ---- ------- --------
1 Runspace1 True False
매개 변수
-AppDomainName
The name of the application ___domain that hosts the PowerShell runspace.
매개 변수 속성
형식: String [ ]
Default value: None
와일드카드 지원: False
DontShow: False
매개 변수 집합
ProcessNameParameterSet
Position: 1
필수: False
파이프라인의 값: False
속성 이름별 파이프라인의 값: False
나머지 인수의 값: False
-BreakAll
Causes 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.
매개 변수 속성
매개 변수 집합
RunspaceNameParameterSet
Position: 1
필수: False
파이프라인의 값: False
속성 이름별 파이프라인의 값: False
나머지 인수의 값: False
RunspaceParameterSet
Position: 1
필수: False
파이프라인의 값: False
속성 이름별 파이프라인의 값: False
나머지 인수의 값: False
RunspaceIdParameterSet
Position: 1
필수: False
파이프라인의 값: False
속성 이름별 파이프라인의 값: False
나머지 인수의 값: False
-ProcessName
The name of the process that hosts the PowerShell runspace.
매개 변수 속성
형식: String
Default value: None
와일드카드 지원: False
DontShow: False
매개 변수 집합
ProcessNameParameterSet
Position: 0
필수: False
파이프라인의 값: False
속성 이름별 파이프라인의 값: False
나머지 인수의 값: False
-Runspace
One or more Runspace objects to be disabled.
매개 변수 속성
형식: Runspace [ ]
Default value: None
와일드카드 지원: False
DontShow: False
매개 변수 집합
RunspaceParameterSet
Position: 0
필수: True
파이프라인의 값: True
속성 이름별 파이프라인의 값: True
나머지 인수의 값: False
-RunspaceId
One or more Runspace Id numbers to be disabled.
매개 변수 속성
형식: Int32 [ ]
Default value: None
와일드카드 지원: False
DontShow: False
매개 변수 집합
RunspaceIdParameterSet
Position: 0
필수: True
파이프라인의 값: False
속성 이름별 파이프라인의 값: False
나머지 인수의 값: False
-RunspaceInstanceId
One or more Runspace GUIDs to be disabled.
매개 변수 속성
형식: Guid [ ]
Default value: None
와일드카드 지원: False
DontShow: False
매개 변수 집합
RunspaceInstanceIdParameterSet
Position: 0
필수: True
파이프라인의 값: False
속성 이름별 파이프라인의 값: False
나머지 인수의 값: False
-RunspaceName
One or more Runspace names to be disabled.
매개 변수 속성
형식: String [ ]
Default value: None
와일드카드 지원: False
DontShow: False
매개 변수 집합
RunspaceNameParameterSet
Position: 0
필수: False
파이프라인의 값: False
속성 이름별 파이프라인의 값: False
나머지 인수의 값: 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 .