@@ -51,43 +51,45 @@ public async Task DebugHotReloadMethodUnchanged()
5151 CheckNumber ( locals , "a" , 10 ) ;
5252 }
5353
54- [ ConditionalFact ( nameof ( RunningOnChrome ) ) ]
55- public async Task DebugHotReloadMethodAddBreakpoint ( )
54+ [ ConditionalTheory ( nameof ( RunningOnChrome ) ) ]
55+ [ InlineData ( "ApplyUpdateReferencedAssembly" ) ]
56+ [ InlineData ( "ApplyUpdateReferencedAssemblyChineseCharInPathㄨ" ) ]
57+ public async Task DebugHotReloadMethodAddBreakpoint ( string assembly_name )
5658 {
5759 int line = 30 ;
5860 await SetBreakpoint ( ".*/MethodBody1.cs$" , line , 12 , use_regex : true ) ;
5961 var pause_location = await LoadAssemblyAndTestHotReload (
60- Path . Combine ( DebuggerTestAppPath , "ApplyUpdateReferencedAssembly .dll") ,
61- Path . Combine ( DebuggerTestAppPath , "ApplyUpdateReferencedAssembly .pdb") ,
62- Path . Combine ( DebuggerTestAppPath , "../wasm/ApplyUpdateReferencedAssembly .dll" ) ,
62+ Path . Combine ( DebuggerTestAppPath , $ " { assembly_name } .dll") ,
63+ Path . Combine ( DebuggerTestAppPath , $ " { assembly_name } .pdb") ,
64+ Path . Combine ( DebuggerTestAppPath , $ "../wasm/{ assembly_name } .dll") ,
6365 "MethodBody3" , "StaticMethod3" , expectBpResolvedEvent : true ) ;
6466
6567 var locals = await GetProperties ( pause_location [ "callFrames" ] [ 0 ] [ "callFrameId" ] . Value < string > ( ) ) ;
6668 CheckNumber ( locals , "a" , 10 ) ;
67- pause_location = await SendCommandAndCheck ( JObject . FromObject ( new { } ) , "Debugger.resume" , "dotnet://ApplyUpdateReferencedAssembly .dll/MethodBody1.cs" , 30 , 12 , "ApplyUpdateReferencedAssembly.MethodBody3.StaticMethod3" ) ;
69+ pause_location = await SendCommandAndCheck ( JObject . FromObject ( new { } ) , "Debugger.resume" , $ "dotnet://{ assembly_name } .dll/MethodBody1.cs", 30 , 12 , "ApplyUpdateReferencedAssembly.MethodBody3.StaticMethod3" ) ;
6870 locals = await GetProperties ( pause_location [ "callFrames" ] [ 0 ] [ "callFrameId" ] . Value < string > ( ) ) ;
6971 CheckNumber ( locals , "b" , 15 ) ;
7072
71- pause_location = await SendCommandAndCheck ( JObject . FromObject ( new { } ) , "Debugger.resume" , "dotnet://ApplyUpdateReferencedAssembly .dll/MethodBody1.cs" , 30 , 12 , "ApplyUpdateReferencedAssembly.MethodBody3.StaticMethod3" ) ;
73+ pause_location = await SendCommandAndCheck ( JObject . FromObject ( new { } ) , "Debugger.resume" , $ "dotnet://{ assembly_name } .dll/MethodBody1.cs", 30 , 12 , "ApplyUpdateReferencedAssembly.MethodBody3.StaticMethod3" ) ;
7274 locals = await GetProperties ( pause_location [ "callFrames" ] [ 0 ] [ "callFrameId" ] . Value < string > ( ) ) ;
7375 await CheckBool ( locals , "c" , true ) ;
7476
75- await StepAndCheck ( StepKind . Over , "dotnet://ApplyUpdateReferencedAssembly .dll/MethodBody1.cs" , 31 , 12 , "ApplyUpdateReferencedAssembly.MethodBody3.StaticMethod3" ,
77+ await StepAndCheck ( StepKind . Over , $ "dotnet://{ assembly_name } .dll/MethodBody1.cs", 31 , 12 , "ApplyUpdateReferencedAssembly.MethodBody3.StaticMethod3" ,
7678 locals_fn : async ( locals ) =>
7779 {
7880 CheckNumber ( locals , "d" , 10 ) ;
7981 await Task . CompletedTask ;
8082 }
8183 ) ;
82- await StepAndCheck ( StepKind . Over , "dotnet://ApplyUpdateReferencedAssembly .dll/MethodBody1.cs" , 32 , 12 , "ApplyUpdateReferencedAssembly.MethodBody3.StaticMethod3" ,
84+ await StepAndCheck ( StepKind . Over , $ "dotnet://{ assembly_name } .dll/MethodBody1.cs", 32 , 12 , "ApplyUpdateReferencedAssembly.MethodBody3.StaticMethod3" ,
8385 locals_fn : async ( locals ) =>
8486 {
8587 CheckNumber ( locals , "d" , 10 ) ;
8688 CheckNumber ( locals , "e" , 20 ) ;
8789 await Task . CompletedTask ;
8890 }
8991 ) ;
90- await StepAndCheck ( StepKind . Over , "dotnet://ApplyUpdateReferencedAssembly .dll/MethodBody1.cs" , 33 , 8 , "ApplyUpdateReferencedAssembly.MethodBody3.StaticMethod3" ,
92+ await StepAndCheck ( StepKind . Over , $ "dotnet://{ assembly_name } .dll/MethodBody1.cs", 33 , 8 , "ApplyUpdateReferencedAssembly.MethodBody3.StaticMethod3" ,
9193 locals_fn : async ( locals ) =>
9294 {
9395 CheckNumber ( locals , "d" , 10 ) ;
@@ -217,12 +219,14 @@ public async Task DebugHotReloadMethodUnchangedUsingSDB()
217219 CheckLocation ( "dotnet://ApplyUpdateReferencedAssembly.dll/MethodBody1.cs" , 21 , 12 , scripts , top_frame [ "location" ] ) ;
218220 }
219221
220- [ ConditionalFact ( nameof ( RunningOnChrome ) ) ]
221- public async Task DebugHotReloadMethodAddBreakpointUsingSDB ( )
222+ [ ConditionalTheory ( nameof ( RunningOnChrome ) ) ]
223+ [ InlineData ( "ApplyUpdateReferencedAssembly" ) ]
224+ [ InlineData ( "ApplyUpdateReferencedAssemblyChineseCharInPathㄨ" ) ]
225+ public async Task DebugHotReloadMethodAddBreakpointUsingSDB ( string assembly_name )
222226 {
223- string asm_file = Path . Combine ( DebuggerTestAppPath , "ApplyUpdateReferencedAssembly .dll") ;
224- string pdb_file = Path . Combine ( DebuggerTestAppPath , "ApplyUpdateReferencedAssembly .pdb") ;
225- string asm_file_hot_reload = Path . Combine ( DebuggerTestAppPath , "../wasm/ApplyUpdateReferencedAssembly .dll" ) ;
227+ string asm_file = Path . Combine ( DebuggerTestAppPath , $ " { assembly_name } .dll") ;
228+ string pdb_file = Path . Combine ( DebuggerTestAppPath , $ " { assembly_name } .pdb") ;
229+ string asm_file_hot_reload = Path . Combine ( DebuggerTestAppPath , $ "../wasm/{ assembly_name } .dll") ;
226230
227231 int line = 30 ;
228232 await SetBreakpoint ( ".*/MethodBody1.cs$" , line , 12 , use_regex : true ) ;
@@ -238,7 +242,7 @@ public async Task DebugHotReloadMethodAddBreakpointUsingSDB()
238242
239243 JToken top_frame = pause_location [ "callFrames" ] ? [ 0 ] ;
240244 AssertEqual ( "ApplyUpdateReferencedAssembly.MethodBody3.StaticMethod3" , top_frame ? [ "functionName" ] ? . Value < string > ( ) , top_frame ? . ToString ( ) ) ;
241- CheckLocation ( "dotnet://ApplyUpdateReferencedAssembly .dll/MethodBody1.cs" , 30 , 12 , scripts , top_frame [ "location" ] ) ;
245+ CheckLocation ( $ "dotnet://{ assembly_name } .dll/MethodBody1.cs", 30 , 12 , scripts , top_frame [ "location" ] ) ;
242246
243247 locals = await GetProperties ( pause_location [ "callFrames" ] [ 0 ] [ "callFrameId" ] . Value < string > ( ) ) ;
244248 CheckNumber ( locals , "b" , 15 ) ;
@@ -249,27 +253,27 @@ public async Task DebugHotReloadMethodAddBreakpointUsingSDB()
249253
250254 top_frame = pause_location [ "callFrames" ] ? [ 0 ] ;
251255 AssertEqual ( "ApplyUpdateReferencedAssembly.MethodBody3.StaticMethod3" , top_frame ? [ "functionName" ] ? . Value < string > ( ) , top_frame ? . ToString ( ) ) ;
252- CheckLocation ( "dotnet://ApplyUpdateReferencedAssembly .dll/MethodBody1.cs" , 30 , 12 , scripts , top_frame [ "location" ] ) ;
256+ CheckLocation ( $ "dotnet://{ assembly_name } .dll/MethodBody1.cs", 30 , 12 , scripts , top_frame [ "location" ] ) ;
253257
254258 locals = await GetProperties ( pause_location [ "callFrames" ] [ 0 ] [ "callFrameId" ] . Value < string > ( ) ) ;
255259 await CheckBool ( locals , "c" , true ) ;
256260
257- await StepAndCheck ( StepKind . Over , "dotnet://ApplyUpdateReferencedAssembly .dll/MethodBody1.cs" , 31 , 12 , "ApplyUpdateReferencedAssembly.MethodBody3.StaticMethod3" ,
261+ await StepAndCheck ( StepKind . Over , $ "dotnet://{ assembly_name } .dll/MethodBody1.cs", 31 , 12 , "ApplyUpdateReferencedAssembly.MethodBody3.StaticMethod3" ,
258262 locals_fn : async ( locals ) =>
259263 {
260264 CheckNumber ( locals , "d" , 10 ) ;
261265 await Task . CompletedTask ;
262266 }
263267 ) ;
264- await StepAndCheck ( StepKind . Over , "dotnet://ApplyUpdateReferencedAssembly .dll/MethodBody1.cs" , 32 , 12 , "ApplyUpdateReferencedAssembly.MethodBody3.StaticMethod3" ,
268+ await StepAndCheck ( StepKind . Over , $ "dotnet://{ assembly_name } .dll/MethodBody1.cs", 32 , 12 , "ApplyUpdateReferencedAssembly.MethodBody3.StaticMethod3" ,
265269 locals_fn : async ( locals ) =>
266270 {
267271 CheckNumber ( locals , "d" , 10 ) ;
268272 CheckNumber ( locals , "e" , 20 ) ;
269273 await Task . CompletedTask ;
270274 }
271275 ) ;
272- await StepAndCheck ( StepKind . Over , "dotnet://ApplyUpdateReferencedAssembly .dll/MethodBody1.cs" , 33 , 8 , "ApplyUpdateReferencedAssembly.MethodBody3.StaticMethod3" ,
276+ await StepAndCheck ( StepKind . Over , $ "dotnet://{ assembly_name } .dll/MethodBody1.cs", 33 , 8 , "ApplyUpdateReferencedAssembly.MethodBody3.StaticMethod3" ,
273277 locals_fn : async ( locals ) =>
274278 {
275279 CheckNumber ( locals , "d" , 10 ) ;
0 commit comments