@@ -406,41 +406,57 @@ void main() {
406406 file: mainFile,
407407 breakpointMarker: capturedStringMarker,
408408 );
409+ print ('added breakpoint' );
409410
410411 final oldLog = "log('\$ mainValue');" ;
411412 final newLog = "log('\$ {closure()}');" ;
412413 await makeEditAndRecompile (mainFile, oldLog, newLog);
414+ print ('recompiled' );
413415
414416 bp =
415417 (await hotReloadAndHandlePausePost ([
416418 (file: mainFile, breakpointMarker: capturedStringMarker, bp: bp),
417419 ])).first;
418420
421+ print ('hot reload and handled pausepost' );
422+
419423 final breakpointFuture = waitForBreakpoint ();
420424
421425 await callEvaluate ();
422426
427+ print ('called evaluate' );
428+
423429 // Should break at `capturedString`.
424430 await breakpointFuture;
431+
432+ print ('waited for breakpoint' );
425433 final oldCapturedString = 'captured closure gen0' ;
426434 expect (consoleLogs.contains (oldCapturedString), false );
427435 // Closure gets evaluated for the first time.
428436 await resumeAndExpectLog (oldCapturedString);
429437
438+ print ('resumed and got log' );
439+
430440 final newCapturedString = 'captured closure gen1' ;
431441 await makeEditAndRecompile (
432442 mainFile,
433443 oldCapturedString,
434444 newCapturedString,
435445 );
436446
447+ print ('made edit again and recompiled' );
448+
437449 await hotReloadAndHandlePausePost ([
438450 (file: mainFile, breakpointMarker: capturedStringMarker, bp: bp),
439451 ]);
440452
453+ print ('hot reloaded again and handled pause post' );
454+
441455 // Breakpoint should not be hit as it's now deleted. We should also see
442456 // the old string still as the closure has not been reevaluated.
443457 await callEvaluateAndExpectLog (oldCapturedString);
458+
459+ print ('handled evaluate again and got log' );
444460 });
445461 }, timeout: Timeout .factor (2 ));
446462
0 commit comments