address a regression in debugging flutter web apps (#2098)
diff --git a/packages/devtools_app/lib/src/connected_app.dart b/packages/devtools_app/lib/src/connected_app.dart index 7a8f52e..11ef504 100644 --- a/packages/devtools_app/lib/src/connected_app.dart +++ b/packages/devtools_app/lib/src/connected_app.dart
@@ -62,6 +62,11 @@ bool get isDartCliAppNow => isRunningOnDartVM && !isFlutterAppNow; Future<bool> _connectedToProfileBuild() async { + // If Dart or Flutter web, assume profile is false. + if (!isRunningOnDartVM) { + return false; + } + // If eval works we're not a profile build. final io = EvalOnDartLibrary(['dart:io'], serviceManager.service); final value = await io.eval('Platform.isAndroid', isAlive: null);