File tree Expand file tree Collapse file tree 2 files changed +4
-3
lines changed
fixtures/_testHotReloadBreakpoints/web Expand file tree Collapse file tree 2 files changed +4
-3
lines changed Original file line number Diff line number Diff line change @@ -1211,7 +1211,6 @@ class ChromeProxyService implements VmServiceInterface {
1211
1211
);
1212
1212
1213
1213
if (pauseIsolatesOnStart) {
1214
- await _reinitializeForHotReload ();
1215
1214
// If `pause_isolates_on_start` is enabled, pause and then the reload
1216
1215
// should finish later after the client removes breakpoints, reregisters
1217
1216
// breakpoints, and resumes.
@@ -1235,6 +1234,8 @@ class ChromeProxyService implements VmServiceInterface {
1235
1234
await pause (isolateId);
1236
1235
await pausedEvent;
1237
1236
1237
+ await _reinitializeForHotReload ();
1238
+
1238
1239
// This lets the client know that we're ready for breakpoint management
1239
1240
// and a resume.
1240
1241
_streamNotify (
Original file line number Diff line number Diff line change @@ -10,8 +10,8 @@ external void log(String _);
10
10
String get mainValue => 'main gen0' ;
11
11
12
12
void evaluate () {
13
- // Use a future as if we come across a breakpoint, evaluating this method
14
- // would never finish .
13
+ // Use a future instead of directly calling because evaluating this method
14
+ // with a breakpoint would never complete otherwise .
15
15
Future .delayed (Duration (milliseconds: 10 ), printToConsole);
16
16
}
17
17
You can’t perform that action at this time.
0 commit comments