This page describes the fastest way to build DevTools with the goal to use it. Do not mix this setup with development environment. If you want to make code changes, follow contributing guidance.
You may want to build DevTools to:
Try experimental features
Run desktop version, instead of Web version, to get get rid of browser memory limit. For example, to be able to analyze heap snapshots of more complicated applications.
These steps were tested for Mac and may require adjustments for other platforms. Contributions that make the steps more platform agnostic are welcome.
In your terminal
cd to a folder where you want to clone devtools, and that does not have subfolder
Clone the repo and update the Flutter SDK that DevTools will be built with:
git clone https://github.com/flutter/devtools.git bash devtools/tool/update_flutter_sdk.sh cd devtools
If you have already configured the DevTools environment and need to refresh to get the latest DevTools code, follow these instructions:
cd to the
devtools directory created in the Setup and start section.
Refresh DevTools (it will delete all your local changes!):
git checkout master git reset --hard origin/master bash tool/update_flutter_sdk.sh bash tool/upgrade.sh
If some steps failed, remove the directory and redo to Setup.
From the main devtools directory, run `cd packages/devtools_app``
../../tool/flutter-sdk/bin/flutter run --release -d chrome
../../tool/flutter-sdk/bin/flutter run --release -d macos
../../tool/flutter-sdk/bin/flutter run --release -d windows
--dart-define=enable_experiments=true to enable experimental features.