开发者工具概览

开发工具是什么?

What is DevTools?

开发工具是一套 Dart 和 Flutter 的性能调试工具。目前已经“行进”到 Beta 版本了,但仍在正在持续开发中。

DevTools is a suite of performance and debugging tools for Dart and Flutter. It’s currently in beta release, but is under active development.

Dart DevTools Screens

我可以用开发工具来做什么?

What can I do with DevTools?

下面列出了一些可以用开发工具来实现的操作:

Here are some of the things you can do with DevTools:

  • 检查 Flutter 应用程序的 UI 组件布局和状态;

    Inspect the UI layout and state of a Flutter app.

  • 在 Flutter 应用程序中诊断 UI 性能过低的问题;

    Diagnose UI jank performance issues in a Flutter app.

  • Flutter 和 Dart 应用的 CPU 性能检测;

    CPU profiling for a Flutter or Dart app.

  • 为 Flutter 应用进行网络性能检测;

    Network profiling for a Flutter app.

  • 为 Flutter 或 Dart 应用进行源码级的调试;

    Source-level debugging of a Flutter or Dart app.

  • 在 Flutter 或 Dart 命令行应用中测试内存问题;

    Debug memory issues in a Flutter or Dart command-line app.

  • View general log and diagnostics information about a running Flutter or Dart command-line app.
  • 查看正在运行的 Flutter 或 Dart 的命令行应用程序相关的常规日志和诊断信息。

    Analyze code and app size.

我们希望您将开发工具与现有的 IDE 或基于命令行的开发流程结合起来使用。

We expect you to use DevTools in conjunction with your existing IDE or command-line based development workflow.

如何安装开发工具?

How do I install DevTools?

See the Android Studio/IntelliJ, VS Code, or command line pages for installation instructions.

提交反馈

Providing feedback

请在 [开发者工具 issue 追踪器][] 中尝试使用开发工具,并提交反馈和文件 issue。

Please give DevTools a try, provide feedback, and file issues in the DevTools issue tracker. Thanks!

其他资源

Other resources

关于调试、分析 Flutter 应用程序的更多详细,请查阅 调试 页面,尤其是 其他资源 列表。

For more information on debugging and profiling Flutter apps, see the Debugging page and, in particular, its list of other resources.

如果你希望知道更多如何在命令行下使用开发者工具 (DevTools) 的话,请参考这个页面 Dart 开发者工具.

For more information on using DevTools with Dart command-line apps, see the DevTools documentation on dart.dev.