dart-lang / webdev

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

Do not notify clients when we remove breakpoints before triggering a hot restart #2372

Closed elliette closed 4 months ago

elliette commented 4 months ago

Before triggering a hot-restart, DWDS:

However, this means that the debugging client (e.g. DevTools) is notified that the breakpoints have been removed before the hot-restart happens. Therefore, it cannot re-establish the breakpoints because it believes they don't exist.

This PR makes sure that when we remove the breakpoints for a hot-restart, we do not notify the client of their removal.