Repository navigation
Description
Steps to reproduce
It's difficult to reproduce this through the IDE right now, because there are parts of this functionality missing from the SDK debug adapters (I'm working on this at #190455 and Dart-Code/Dart-Code#6140).
But with those changes, if I create an app that deliberately overflows (see code below), and trigger a Hot Reload, I see the following:
This appears because the structured error produced by Flutter during the overflow has a DevTools deep link in it, which (with my PRs above) gets forwarded through the Debug Adapter (DAP) to Dart-Code, which then presents the popup, deep-linking into the DevTools inspector.
However, if the overflow occurs quickly during startup (before my Hot Reload), the prompt never appears. This is because when the structured error is produced by Flutter here:
| final String? devToolsInspectorUri = WidgetInspectorService.instance |
Neither the DevTools server address or VM Service are set (both are null) and therefore the link is not produced.
These links are seemingly set by DDS in DartDevelopmentServiceLocalOperationsMixin.invokeServiceExtensions which appears to be called both at startup, and during a hot reload. My guess is that the call at startup is not happening early enough for it to be set by the time the overflow occurs when the app first runs.
Expected results
The inspector deep links should be available before a Hot Reload, even if the overflow occurs on the initially displayed screen.
Actual results
The inspector deep links only appear if the overflow occurs after a hot reload.
Code sample
Code sample
import 'package:flutter/material.dart';
void main() {
runApp(const MainApp());
}
class MainApp extends StatelessWidget {
const MainApp({super.key});
@override
Widget build(BuildContext context) {
return MaterialApp(
home: Scaffold(
body: Row(
children: [
Icon(Icons.message),
Column(
mainAxisSize: MainAxisSize.min,
crossAxisAlignment: CrossAxisAlignment.start,
children: [
Text(
'Title',
style: Theme.of(context).textTheme.headlineMedium,
),
Text(
'Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed '
'do eiusmod tempor incididunt ut labore et dolore magna '
'aliqua. Ut enim ad minim veniam, quis nostrud '
'exercitation ullamco laboris nisi ut aliquip ex ea '
'commodo consequat.',
),
],
),
],
),
),
);
}
}Screenshots or Video
Screenshots / Video demonstration
[Upload media here]
Logs
Logs
[Paste your logs here]Flutter Doctor output
Doctor output
PS D:\Dev\Test Projects\flutter_overflow_inspector_deeplink> flutter doctor -v
[!] Flutter (Channel [user-branch], 3.47.0-1.0.pre-334, on Microsoft Windows [Version 10.0.26200.8875], locale en-GB) [248ms]
! Flutter version 3.47.0-1.0.pre-334 on channel [user-branch] at D:\Dev\Google\Flutter\Flutter main
Currently on an unknown channel. Run `flutter channel` to switch to an official channel.
If that doesn't fix the issue, try deleting the 'bin/cache/flutter.version.json' file in your Flutter SDK directory and then reinstall Flutter by following instructions at
https://flutter.dev/setup.
! Upstream repository [email protected]:DanTup/flutter.git is not a standard remote.
Set environment variable "FLUTTER_GIT_URL" to [email protected]:DanTup/flutter.git to dismiss this error.
• Framework revision 27434894de (20 hours ago), 2026-08-03 18:23:41 +0100
• Engine revision 7bb14cd567
• Dart version 3.14.0 (build 3.14.0-82.0.dev)
• DevTools version 2.61.0-dev.0
• Feature flags: enable-web, enable-linux-desktop, enable-macos-desktop, enable-windows-desktop, enable-android, enable-ios, cli-animations, enable-native-assets,
enable-record-use, enable-swift-package-manager, omit-legacy-version-file, enable-lldb-debugging, enable-uiscene-migration, enable-riscv64
• If those were intentional, you can disregard the above warnings; however it is recommended to use "git" directly to perform update checks and upgrades.
[√] Windows Version (11 Pro 64-bit, 25H2, 2009) [897ms]
[!] Android toolchain - develop for Android devices (Android SDK version 35.0.0) [1,853ms]
• Android SDK at C:\Users\danny\AppData\Local\Android\sdk
• Emulator version 36.3.10.0 (build_id 14472402) (CL:N/A)
• Platform android-36, build-tools 35.0.0
• Java binary at: C:\Program Files\Android\Android Studio\jbr\bin\java
This is the JDK bundled with the latest Android Studio installation on this machine.
To manually set the JDK path, use: `flutter config --jdk-dir="path/to/jdk"`.
• Java version OpenJDK Runtime Environment (build 21.0.8+-14196175-b1038.72)
! Some Android licenses not accepted. To resolve this, run: flutter doctor --android-licenses
[√] Chrome - develop for the web [57ms]
• Chrome at C:\Program Files\Google\Chrome\Application\chrome.exe
[√] Visual Studio - develop Windows apps (Visual Studio Community 2026 18.7.3) [56ms]
• Visual Studio at C:\Program Files\Microsoft Visual Studio\18\Community
• Visual Studio Community 2026 version 18.7.11925.98
• Windows 10 SDK version 10.0.26100.0
[√] Connected device (3 available) [138ms]
• Windows (desktop) • windows • windows-x64 • Microsoft Windows [Version 10.0.26200.8875]
• Chrome (web) • chrome • web-javascript • Google Chrome 151.0.7922.72
• Edge (web) • edge • web-javascript • Microsoft Edge 150.0.4078.65
[√] Network resources [287ms]
• All expected network resources are available.
! Doctor found issues in 2 categories.
Activity
DanTup commentedon Aug 4, 2026
cc @bkonyi