This page describes the fastest way to test the latest version of DevTools with all experemental features enabled. Do not mix this setup with development environment.
If you want to make code changes, follow contributing guidance.
The steps were tested for Mac. They may require adjustments for other platforms.
- Configure Dart or Flutter.
-
In your terminal
cd
to a folder where you want to clone devtools, and that does not have subfolderdevtools
yet. -
Clone the repo, get needed Flutter version to local folder and start DevTools:
git clone https://github.com/flutter/devtools.git
./devtools/tool/update_flutter_sdk.sh
cd devtools/packages/devtools_app
../../tool/flutter-sdk/bin/flutter run -d chrome --dart-define=enable_experiments=true
- Paste the URL of your application (for example Gallery) to the connection textbox.
-
cd
to thedevtools
directory created in the Setup and start section. -
Refresh and run DevTools (it will delete all your local changes!):
git checkout master
git reset --hard origin/master
./tool/update_flutter_sdk.sh
cd packages/devtools_app
../../tool/flutter-sdk/bin/flutter pub upgrade
../../tool/flutter-sdk/bin/flutter run -d chrome --dart-define=enable_experiments=true
- Paste the URL of your application (for example Gallery) to the connection textbox.