为什么我找不到 Chrome 作为调试目标?

Why I can't find Chrome as a debug target?

如您所见,只有 Windows 调试。 我删除了 androidios 文件夹所以看不到它们并不奇怪,但我看不到 Chrome.

很奇怪

为什么只有Windows (desktop)?使用 Chrome(或 E​​dge)进行调试的任何方式?

flutter doctor -v

[√] Flutter (Channel stable, 2.10.5, on Microsoft Windows [Version 10.0.22000.675], locale ja-JP)
    • Flutter version 2.10.5 at C:\Flutter
    • Upstream repository https://github.com/flutter/flutter.git
    • Framework revision 5464c5bac7 (4 weeks ago), 2022-04-18 09:55:37 -0700
    • Engine revision 57d3bac3dd
    • Dart version 2.16.2
    • DevTools version 2.9.2

[√] Android toolchain - develop for Android devices (Android SDK version 32.0.0)
    • Android SDK at C:\Users\yukik.000\AppData\Local\Android\sdk
    • Platform android-32, build-tools 32.0.0
    • Java binary at: C:\Program Files\Android\Android Studio\jre\bin\java
    • Java version OpenJDK Runtime Environment (build 11.0.10+0-b96-7249189)
    • All Android licenses accepted.

[√] Visual Studio - develop for Windows (Visual Studio Community 2019 16.11.11)
    • Visual Studio at C:\Program Files (x86)\Microsoft Visual Studio19\Community
    • Visual Studio Community 2019 version 16.11.32228.343
    • Windows 10 SDK version 10.0.19041.0

[√] Android Studio (version 2020.3)
    • Android Studio at C:\Program Files\Android\Android Studio
    • Flutter plugin can be installed from:
       https://plugins.jetbrains.com/plugin/9212-flutter
    • Dart plugin can be installed from:
       https://plugins.jetbrains.com/plugin/6351-dart
    • Java version OpenJDK Runtime Environment (build 11.0.10+0-b96-7249189)

[√] VS Code (version 1.67.1)
    • VS Code at C:\Users\yukik.000\AppData\Local\Programs\Microsoft VS Code
    • Flutter extension version 3.40.0

[√] Connected device (1 available)
    • Windows (desktop) • windows • windows-x64 • Microsoft Windows [Version 10.0.22000.675]

[√] HTTP Host Availability
    • All required HTTP hosts are available

• No issues found!

[√] Chrome installed以前不是来过这里吗?

如果您的项目不是 web enabledWeb folder 在您的项目

中,请尝试 运行 下面的命令
flutter config --enable-web

然后使用可用设备重新启动VsCode和运行您的项目Chrome.