dart-lang / webdev

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

Move DWDS launch event #2423

Closed elliette closed 2 months ago

elliette commented 2 months ago

Follow up to https://github.com/dart-lang/webdev/pull/2418

In google3, the buildSettings are not actually created until the app's entrypoint is loaded, which means that this was throwing a null-pointer exception.

Instead, we send the dwds launch event only once we have a debug connection with the app (which ensures that we have loaded the entrypoint).