dart-lang / webdev

A CLI for Dart web development.
https://pub.dev/packages/webdev
213 stars 71 forks source link

During hot-restart, wait to run `main` when `pause_isolates_on_start` is true #2378

Closed elliette closed 4 months ago

elliette commented 4 months ago

During a hot-restart, if pause_isolates_on_start is true, DWDS waits for a call to resume before running the app's main method. This gives the debugging client time to re-set any breakpoints before the app is run.

When using RequireStrategy (flutter, webdev):

When using DdcStrategy (g3):

Work towards https://github.com/flutter/devtools/issues/7231

nshahan commented 4 months ago

Note: requires https://dart-review.googlesource.com/c/sdk/+/355880 - question: is this script used in any configuration?

Currently it is used by the expression compiler tests on the ddc test configurations in the SDK and it is also used by the benchmarking infra when running code with DDC. There is a very minor test in the SDK that runs on the benchmark-linux config that ensures we don't totally break the pieces the benchmark infra relies on.

We will be adding more configs and tests in the near future though.