Skip to content

Commit 88da408

Browse files
authored
Make error message in Dart Debug Extension more specific (#1583)
1 parent 704dc88 commit 88da408

File tree

3 files changed

+4200
-4232
lines changed

3 files changed

+4200
-4232
lines changed

dwds/debug_extension/CHANGELOG.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
## 1.29
22

33
- Notify the debugger and inspector panels when the debug session is disconnected.
4+
- Provide a detailed error message when the debugger fails to connect.
45

56
## 1.28
67

dwds/debug_extension/web/background.dart

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -23,9 +23,10 @@ import 'package:sse/client/sse_client.dart';
2323
import 'package:web_socket_channel/web_socket_channel.dart';
2424

2525
const _notADartAppAlert = 'No Dart application detected.'
26-
' Your development server should inject metadata to indicate support for'
27-
' Dart debugging. This may require setting a flag. Check the documentation'
28-
' for your development server.';
26+
' Are you trying to debug an application that includes a Chrome hosted app'
27+
' (an application listed in chrome://apps)? If so, debugging is disabled.'
28+
' You can fix this by removing the application from chrome://apps. Please'
29+
' see https://bugs.chromium.org/p/chromium/issues/detail?id=885025#c11.';
2930

3031
// Extensions allowed for cross-extension communication.
3132
const _allowedExtensions = {

0 commit comments

Comments
 (0)