@@ -91,7 +91,7 @@ await CheckInspectLocalsAtBreakpointSite(
91
91
[ Fact ]
92
92
public async Task InspectLocalsTypesAtBreakpointSite ( ) =>
93
93
await CheckInspectLocalsAtBreakpointSite (
94
- "dotnet://debugger-test.dll/debugger-test2.cs" , 48 , 8 , "Types" ,
94
+ "dotnet://debugger-test.dll/debugger-test2.cs" , 50 , 8 , "Types" ,
95
95
"window.setTimeout(function() { invoke_static_method (\" [debugger-test] Fancy:Types\" )(); }, 1);" ,
96
96
use_cfo : false ,
97
97
test_fn : ( locals ) =>
@@ -826,6 +826,25 @@ public async Task GetSourceUsingSourceLink()
826
826
Assert . True ( source . IsOk ) ;
827
827
}
828
828
829
+ [ Fact ]
830
+ public async Task InspectTaskAtLocals ( ) => await CheckInspectLocalsAtBreakpointSite (
831
+ "InspectTask" ,
832
+ "RunInspectTask" ,
833
+ 7 ,
834
+ "<RunInspectTask>b__0" ,
835
+ $ "window.setTimeout(function() {{ invoke_static_method_async('[debugger-test] InspectTask:RunInspectTask'); }}, 1);",
836
+ wait_for_event_fn : async ( pause_location ) =>
837
+ {
838
+ var locals = await GetProperties ( pause_location [ "callFrames" ] [ 0 ] [ "callFrameId" ] . Value < string > ( ) ) ;
839
+
840
+ var t_props = await GetObjectOnLocals ( locals , "t" ) ;
841
+ await CheckProps ( t_props , new
842
+ {
843
+ s_taskIdCounter = TNumber ( 0 ) ,
844
+ Status = TGetter ( "Status" )
845
+ } , "t_props" , num_fields : 53 ) ;
846
+ } ) ;
847
+
829
848
//TODO add tests covering basic stepping behavior as step in/out/over
830
849
}
831
850
}
0 commit comments