@@ -177,7 +177,7 @@ await debugService.SetCommandBreakpointsAsync(
177
177
new PSCommand ( ) . AddScript ( "Get-Random -SetSeed 42 -Maximum 100" ) , CancellationToken . None ) ;
178
178
179
179
AssertDebuggerStopped ( "" , 1 ) ;
180
- debugService . Continue ( ) ;
180
+ await Task . Run ( debugService . Continue ) . ConfigureAwait ( true ) ;
181
181
Assert . Equal ( 17 , ( await executeTask . ConfigureAwait ( true ) ) [ 0 ] ) ;
182
182
183
183
StackFrameDetails [ ] stackFrames = await debugService . GetStackFramesAsync ( ) . ConfigureAwait ( true ) ;
@@ -296,7 +296,7 @@ public async Task DebuggerStopsOnFunctionBreakpoints()
296
296
Assert . Equal ( "1" , i . ValueString ) ;
297
297
298
298
// The function breakpoint should fire the next time through the loop.
299
- debugService . Continue ( ) ;
299
+ await Task . Run ( debugService . Continue ) . ConfigureAwait ( true ) ;
300
300
AssertDebuggerStopped ( debugScriptFile . FilePath , 6 ) ;
301
301
302
302
variables = await GetVariables ( VariableContainerDetails . LocalScopeName ) . ConfigureAwait ( true ) ;
@@ -353,7 +353,7 @@ await debugService.SetLineBreakpointsAsync(
353
353
354
354
Task _ = ExecuteDebugFileAsync ( ) ;
355
355
AssertDebuggerStopped ( debugScriptFile . FilePath , 5 ) ;
356
- debugService . Continue ( ) ;
356
+ await Task . Run ( debugService . Continue ) . ConfigureAwait ( true ) ;
357
357
AssertDebuggerStopped ( debugScriptFile . FilePath , 7 ) ;
358
358
}
359
359
@@ -382,7 +382,7 @@ await debugService.SetLineBreakpointsAsync(
382
382
383
383
// The conditional breakpoint should not fire again, until the value of
384
384
// i reaches breakpointValue2.
385
- debugService . Continue ( ) ;
385
+ await Task . Run ( debugService . Continue ) . ConfigureAwait ( true ) ;
386
386
AssertDebuggerStopped ( debugScriptFile . FilePath , 7 ) ;
387
387
388
388
variables = await GetVariables ( VariableContainerDetails . LocalScopeName ) . ConfigureAwait ( true ) ;
0 commit comments