From d4b7b831d8d4f841a501443ee9ff2913bf7c42d9 Mon Sep 17 00:00:00 2001 From: Parker Lougheed Date: Mon, 7 Oct 2024 15:53:11 -0500 Subject: [PATCH] Point to standard redirect for debug extension (#2503) --- dwds/debug_extension/README.md | 10 ++++++++++ dwds/debug_extension/pubspec.yaml | 1 - dwds/lib/shared/README.md | 4 ++-- dwds/web/client.dart | 2 +- webdev/README.md | 3 ++- webdev/lib/src/command/serve_command.dart | 3 ++- 6 files changed, 17 insertions(+), 6 deletions(-) create mode 100644 dwds/debug_extension/README.md diff --git a/dwds/debug_extension/README.md b/dwds/debug_extension/README.md new file mode 100644 index 000000000..9c0aafeeb --- /dev/null +++ b/dwds/debug_extension/README.md @@ -0,0 +1,10 @@ +## Dart Debug Extension + +The implementation of the [Dart Debug Extension][] for Chrome, +that enables debugging Dart web apps with [Dart DevTools][] by +integrating with [`webdev`][] through [DWDS][]. + +[Dart Debug Extension]: https://dart.dev/to/web-debug-extension +[Dart DevTools]: https://dart.dev/tools/dart-devtools +[`webdev`]: https://dart.dev/tools/webdev +[DWDS]: https://pub.dev/packages/dwds diff --git a/dwds/debug_extension/pubspec.yaml b/dwds/debug_extension/pubspec.yaml index 9a161c40d..2eebcd4c7 100644 --- a/dwds/debug_extension/pubspec.yaml +++ b/dwds/debug_extension/pubspec.yaml @@ -1,7 +1,6 @@ name: mv3_extension publish_to: none version: 2.1.4 -homepage: https://github.com/dart-lang/webdev description: >- A Chrome extension for Dart debugging. diff --git a/dwds/lib/shared/README.md b/dwds/lib/shared/README.md index ac348e6bb..c195ebbb0 100644 --- a/dwds/lib/shared/README.md +++ b/dwds/lib/shared/README.md @@ -1,4 +1,4 @@ # Shared directory -The files in this directory are shared between DWDS and external packages (e.g., -the Dart Debug Extension). +The files in this directory are shared between DWDS and external packages, +such as the [Dart Debug Extension](https://dart.dev/to/web-debug-extension). diff --git a/dwds/web/client.dart b/dwds/web/client.dart index 2a016d698..4311d616d 100644 --- a/dwds/web/client.dart +++ b/dwds/web/client.dart @@ -163,7 +163,7 @@ Future? main() { if (!event.success) { final alert = 'DevTools failed to open with:\n${event.error}'; if (event.promptExtension && window.confirm(alert)) { - window.open('https://goo.gle/dart-debug-extension', '_blank'); + window.open('https://dart.dev/to/web-debug-extension', '_blank'); } else { window.alert(alert); } diff --git a/webdev/README.md b/webdev/README.md index 2117507f9..1a80a1f21 100644 --- a/webdev/README.md +++ b/webdev/README.md @@ -49,7 +49,8 @@ Usage: webdev serve [arguments] [[:]]... + D / Option + D). This also enables --launch-in-chrome. --[no-]debug-extension Enable the backend for the Dart Debug - Extension. + Extension. Learn more at + dart.dev/to/web-debug-extension. --[no-]injected-client Whether or not to inject the client.js script in web apps. This is required for all debugging related diff --git a/webdev/lib/src/command/serve_command.dart b/webdev/lib/src/command/serve_command.dart index 58c2e5543..3c32817e8 100644 --- a/webdev/lib/src/command/serve_command.dart +++ b/webdev/lib/src/command/serve_command.dart @@ -35,7 +35,8 @@ refresh: Performs a full page refresh. help: 'Enable the launching of DevTools (Alt + D / Option + D). ' 'This also enables --$launchInChromeFlag.') ..addFlag(debugExtensionFlag, - help: 'Enable the backend for the Dart Debug Extension.') + help: 'Enable the backend for the Dart Debug Extension. ' + 'Learn more at dart.dev/to/web-debug-extension.') ..addFlag(enableInjectedClientFlag, help: 'Whether or not to inject the client.js script in web apps. This ' 'is required for all debugging related features, but may interact '