Repository navigation
Deep-links into DevTools on Overflow errors no longer appear #6134
Description
Activity
- addedin flutterRelates to running Flutter appsRelates to running Flutter apps
on Jul 29, 2026 - addedin debuggingRelates to the debug adapter or process of running debug sessionsRelates to the debug adapter or process of running debug sessions
on Jul 29, 2026 I think there might be multiple issues here:
1. The SDK DAPs might not be forwarding these messages
The legacy DAP forwarded them as
dart.flutter.widgetErrorInspectDataevents to the extension, but I don't see any equivalent in the new DAPs.2. It doesn't appear like Flutter is sending them either
If I add some logging around this code here that tries to build the deep-link URI:
It doesn't produce a URI, because of this condition:
if (activeDevToolsServerAddress != null && connectedVmServiceUri != null) {
If I log those variables, both of them are
null. It looks like these are supposed to be set via service extensions (FoundationServiceExtensions.activeDevToolsServerAddressandFoundationServiceExtensions.connectedVmServiceUri).@kenzieschmoll do you know who is supposed to call these services to set these values? I'm struggling to find any code that seems to reference them.
I have some PRs open:
- [flutter_tools] [DAP] Extract and forward DevTools Deep Link URLs to DAP clients flutter/flutter#190455 collects the deep link info from Flutter.Error events in the debug adapter and forwards it in a new event to the client
- Handle deep link notifications from new Flutter DAP #6140 handles the (slightly new format) events from the SDK DAP
However, I'm still not getting the data in the Flutter.Error events because of the issue noted above (the DevTools server address and VM service URL are both
nullinside the Flutter framework when the error occurs). For testing, I just hard-coded these, but I need to track down why they're not set. I don't yet know if that's something wrong on the Dart-Code or Flutter DAP side, or even in DevTools Server or Flutter framework/inspector service.I tracked down the first issue related to not getting the link in the
Flutter.Errorevent. It appears to be a race during startup (or that the address is not correctly set at startup). It happens fine after a hot reload. I have filed flutter/flutter#190526 related to that.- added a commit that references this issue
on Aug 5, 2026 - added a commit that references this issue
on Aug 6, 2026 The new DAP is updated now, and Dart-Code handles the event.
There's still an outstanding Flutter issue (flutter/flutter#190526) but that may have been around forever.
For #3088 we added notifications that deep-linked into DevTools when you hit an overflow error. As far as I can see, this isn't working anymore.