Skip to content

Commit b3ea78c

Browse files
committed
Fix up command breakpoints for WinPS
1 parent 8d17b3b commit b3ea78c

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

src/PowerShellEditorServices/Services/DebugAdapter/BreakpointService.cs

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -52,6 +52,10 @@ internal class BreakpointService
5252
# If using Set-PSBreakpoint we need to escape any wildcard patterns.
5353
$PSBoundParameters['Script'] = [WildcardPattern]::Escape($Script)
5454
}
55+
else {
56+
# WinPS must use null for the Script if unset.
57+
$Script = [NullString]::Value
58+
}
5559
5660
if ($PSCmdlet.ParameterSetName -eq 'Command') {
5761
$cmdCtor = [System.Management.Automation.CommandBreakpoint].GetConstructor(

0 commit comments

Comments
 (0)