Dart DevTools
For details on using DevTools with a Flutter app, see the
Using DevTools with a command-line app
You can use DevTools to perform source-level debugging or to view general log and diagnostics informationfor a running command-line app.
Once you have DevTools, use the commandto run the local web server for DevTools:
Note: If the system cache bin
directory is in your path, then you can just run , without pub global run
.
Note the “listening” URL.You’ll need this URL in the next step.
Important: This URL contains a security token and is different for each run of your app. If you stop your app and rerun it, then you need to connect to DevTools with the new “listening” URL.
- Open Chrome browser window and navigate to
.
- Paste the “listening” URL into the text fieldunder Connect to a running app, and click the Connect button.