调试 Flutter 应用
有很多工具和特性可以帮助调试 Flutter 应用程序,如下列举了一些:
-
VS Code(推荐)和 Android Studio/IntelliJ (借助 Flutter 和 Dart 插件)支持内置的源代码调试器,可以设置断点,单步调试,检查数值。
-
开发者工具,是一套运行在浏览器的性能及分析工具。
- Flutter inspector, a widget inspector available in DevTools, and also directly from Android Studio and IntelliJ (enabled with the Flutter plugin). The inspector allows you to examine a visual representation of the widget tree, inspect individual widgets and their property values, enable the performance overlay, and more.
- If you are looking for a way to use GDB to remotely debug the
Flutter engine running within an Android app process,
check out
flutter_gdb
.
其他资源
以下是其他一些有用的文档: