Ayk*_*car 27 visual-studio-code flutter
当我尝试在 Vs Code 中调试 Flutter 应用程序时,它会很好地命中断点,但是当我将鼠标悬停在任何变量上以查看其值时,我会收到“<optimized out><error>:<Invalid params>”工具提示。\ n这是在我从 3.7 升级到 3.10 后开始的。\n在 macos 和 ios 调试(包括模拟器和实际的 iphone)中都会发生。
\n我尝试了以下步骤但没有帮助:
\n我可以使用 print 语句获取变量的值,这是我现在可以进行调试的唯一方法。\n我还删除了 flutter sdk 的 bin/cache 目录。
\nflutter doctor -v
:
[\xe2\x9c\x93] Flutter (Channel stable, 3.10.0, on macOS 13.3.1 22E772610a darwin-arm64, locale en-US)\n \xe2\x80\xa2 Flutter version 3.10.0 on channel stable at /Users/aykut/Projects/flutter\n \xe2\x80\xa2 Upstream repository https://github.com/flutter/flutter.git\n \xe2\x80\xa2 Framework revision 84a1e904f4 (8 days ago), 2023-05-09 07:41:44 -0700\n \xe2\x80\xa2 Engine revision d44b5a94c9\n \xe2\x80\xa2 Dart version 3.0.0\n \xe2\x80\xa2 DevTools version 2.23.1\n\n[\xe2\x9c\x93] Android toolchain - develop for Android devices (Android SDK version 32.0.0-rc1)\n \xe2\x80\xa2 Android SDK at /Users/aykut/Library/Android/sdk\n \xe2\x80\xa2 Platform android-33, build-tools 32.0.0-rc1\n \xe2\x80\xa2 Java binary at: /Applications/Android Studio.app/Contents/jbr/Contents/Home/bin/java\n \xe2\x80\xa2 Java version OpenJDK Runtime Environment (build 11.0.15+0-b2043.56-8887301)\n \xe2\x80\xa2 All Android licenses accepted.\n\n[\xe2\x9c\x93] Xcode - develop for iOS and macOS (Xcode 14.3)\n \xe2\x80\xa2 Xcode at /Applications/Xcode.app/Contents/Developer\n \xe2\x80\xa2 Build 14E222b\n \xe2\x80\xa2 CocoaPods version 1.12.1\n\n[\xe2\x9c\x93] Chrome - develop for the web\n \xe2\x80\xa2 Chrome at /Applications/Google Chrome.app/Contents/MacOS/Google Chrome\n\n[\xe2\x9c\x93] Android Studio (version 2022.1)\n \xe2\x80\xa2 Android Studio at /Applications/Android Studio.app/Contents\n \xe2\x80\xa2 Flutter plugin can be installed from:\n https://plugins.jetbrains.com/plugin/9212-flutter\n \xe2\x80\xa2 Dart plugin can be installed from:\n https://plugins.jetbrains.com/plugin/6351-dart\n \xe2\x80\xa2 Java version OpenJDK Runtime Environment (build 11.0.15+0-b2043.56-8887301)\n\n[\xe2\x9c\x93] VS Code (version 1.78.2)\n \xe2\x80\xa2 VS Code at /Applications/Visual Studio Code.app/Contents\n \xe2\x80\xa2 Flutter extension version 3.64.0\n\n[\xe2\x9c\x93] Connected device (2 available)\n \xe2\x80\xa2 macOS (desktop) \xe2\x80\xa2 macos \xe2\x80\xa2 darwin-arm64 \xe2\x80\xa2 macOS 13.3.1 22E772610a darwin-arm64\n \xe2\x80\xa2 Chrome (web) \xe2\x80\xa2 chrome \xe2\x80\xa2 web-javascript \xe2\x80\xa2 Google Chrome 113.0.5672.92\n\n[\xe2\x9c\x93] Network resources\n \xe2\x80\xa2 All expected network resources are available.\n\n\xe2\x80\xa2 No issues found!\n
Run Code Online (Sandbox Code Playgroud)\n
唯一对我有用的是降级:
flutter downgrade 3.7.1
Run Code Online (Sandbox Code Playgroud)
归档时间: |
|
查看次数: |
5238 次 |
最近记录: |