使用 Flutter 3.10 / Dart 3.0 进行 VS Code 调试<优化>

swe*_*lot 20 visual-studio-code flutter vscode-debugger

在最新的“颤振​​升级”之后,我在 VS Code 调试期间查看某些变量时遇到问题。

\n

如何在悬停时查看变量的内容而不是获取此内容

\n

悬停变量的屏幕截图:
\n1

\n

这仅发生在某些变量上,其他变量我可以正常查看内容。

\n

颤振医生输出:

\n
[\xe2\x9c\x93] Flutter (Channel stable, 3.10.0, on macOS 13.2.1 22D68 darwin-arm64, locale\n    en-SE)\n    \xe2\x80\xa2 Flutter version 3.10.0 on channel stable at\n      /opt/homebrew/Caskroom/flutter/2.10.0/flutter\n    \xe2\x80\xa2 Upstream repository https://github.com/flutter/flutter.git\n    \xe2\x80\xa2 Framework revision 84a1e904f4 (5 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\n    34.0.0-rc2)\n    \xe2\x80\xa2 Android SDK at /Users/niklaselelid/Library/Android/sdk\n    \xe2\x80\xa2 Platform android-33, build-tools 34.0.0-rc2\n    \xe2\x80\xa2 Java binary at: /Applications/Android\n      Studio.app/Contents/jre/Contents/Home/bin/java\n    \xe2\x80\xa2 Java version OpenJDK Runtime Environment (build 11.0.10+0-b96-7281165)\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.11.3\n\n[\xe2\x9c\x93] Android Studio (version 2020.3)\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.10+0-b96-7281165)\n\n[\xe2\x9c\x93] VS Code (version 1.78.0)\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 iPhone 14 Pro Max (mobile) \xe2\x80\xa2\n    \xe2\x80\xa2 ios\n    \xe2\x80\xa2 com.apple.CoreSimulator.SimRuntime.iOS-16-4 (simulator)\n    \xe2\x80\xa2 macOS (desktop)            \xe2\x80\xa2 macos                                \xe2\x80\xa2\n      darwin-arm64 \xe2\x80\xa2 macOS 13.2.1 22D68 darwin-arm64\n\n[\xe2\x9c\x93] Network resources\n    \xe2\x80\xa2 All expected network resources are available.\n
Run Code Online (Sandbox Code Playgroud)\n

我已经寻找了可能的设置来配置行为。没有运气。

\n

And*_*eev 21

你的代码没有任何问题。Dart SDK存在问题,尚未解决。请点赞,以获得Dart团队更多的关注。