dart-lang / webdev

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

Dart Debug Extension doesn't work with DWDS example #1486

Open elliette opened 2 years ago

elliette commented 2 years ago

Steps to reproduce:

Expected: Dart DevTools opens Actual: Dart DevTools never opens

If you go to chrome://extensions, toggle Dev mode on, and click the link for the background script in the Dart Debug Extension, the following error is shown:

Error handling response: Bad state: Cannot add event after closing

annagrin commented 2 years ago

Figured this out:) You will need to pass --debug-extension flag to the webdev serve... command. We should either enable this setting by default or add an alert to the user in the case it is not enabled.