File tree Expand file tree Collapse file tree 1 file changed +5
-5
lines changed
src/PowerShellEditorServices/Debugging Expand file tree Collapse file tree 1 file changed +5
-5
lines changed Original file line number Diff line number Diff line change @@ -106,11 +106,6 @@ public async Task<BreakpointDetails[]> SetLineBreakpoints(
106
106
. CurrentRunspace
107
107
. GetCapability < DscBreakpointCapability > ( ) ;
108
108
109
- if ( clearExisting && dscBreakpoints == null )
110
- {
111
- await this . ClearBreakpointsInFile ( scriptFile ) ;
112
- }
113
-
114
109
// Make sure we're using the remote script path
115
110
string scriptPath = scriptFile . FilePath ;
116
111
if ( this . powerShellContext . CurrentRunspace . Location == RunspaceLocation . Remote &&
@@ -150,6 +145,11 @@ public async Task<BreakpointDetails[]> SetLineBreakpoints(
150
145
151
146
if ( dscBreakpoints == null || ! dscBreakpoints . IsDscResourcePath ( escapedScriptPath ) )
152
147
{
148
+ if ( clearExisting )
149
+ {
150
+ await this . ClearBreakpointsInFile ( scriptFile ) ;
151
+ }
152
+
153
153
foreach ( BreakpointDetails breakpoint in breakpoints )
154
154
{
155
155
PSCommand psCommand = new PSCommand ( ) ;
You can’t perform that action at this time.
0 commit comments