devtools 0.0.6

  • README.md
  • CHANGELOG.md
  • Installing
  • Versions
  • new46

Build Status

What is this? #

This is a companion repo to the main Flutter repo. It contains the source code for a suite of performance tools for Dart and Flutter.

Trying it out #

Installing #

Currently, the best way to try DevTools out is by running it as a pub globally activated package.

If you have pub on your path, you can run:

  • pub global activate devtools

If you have flutter on your path, you can run:

  • flutter packages pub global activate devtools

That will install (or update) DevTools on your machine.

Going forward, we expect to have additional (and easier!) distributions mechanisms for DevTools.

Run the DevTools application server #

Next, run the local web server, which will serve the DevTools application itself.

Run one of the following two commands:

  • pub global run devtools (if you have pub on your path)

  • flutter packages pub global run devtools (if you have flutter on your path)

On the command-line, you should see output that looks something like:

Serving DevTools at http://127.0.0.1:9100

Start an application to debug #

Next, start an app to connect to. This can be either a Flutter application or a Dart command-line application. The example below uses a Flutter app.

  • cd path/to/flutter/app
  • and, run flutter run --observatory-port=9200

You'll need to have a device connected or a simulator open for flutter run to work. Once the app starts up, you'll be able to connect to it from devtools.

Open DevTools and connect to the target app #

Using DevTools now is as simple as opening a local browser window and pointing the DevTools app to the running Flutter application. If you used the same ports as the example above, you can open:

http://localhost:9100/?port=9200

This can also be done via the command line with open http://localhost:9100/?port=9200. The first port in the url is for the local server that is serving the DevTools web UI. The second port is to tell DevTools itself which local app to connect to for debugging and inspection.

Feedback #

Feedback and issues are best reported at https://github.com/flutter/devtools/issues. Thanks for trying out DevTools!

0.0.1 #

  • initial (pre-release) release

Use this package as an executable

1. Install it

You can install the package from the command line:


$ pub global activate devtools

2. Use it

The package has the following executables:


$ devtools
Version Uploaded Documentation Archive
0.0.6 Feb 20, 2019 Go to the documentation of devtools 0.0.6 Download devtools 0.0.6 archive
0.0.5 Feb 20, 2019 Go to the documentation of devtools 0.0.5 Download devtools 0.0.5 archive
0.0.4 Feb 19, 2019 Go to the documentation of devtools 0.0.4 Download devtools 0.0.4 archive
0.0.3 Feb 7, 2019 Go to the documentation of devtools 0.0.3 Download devtools 0.0.3 archive
0.0.2 Feb 7, 2019 Go to the documentation of devtools 0.0.2 Download devtools 0.0.2 archive
0.0.1 Jan 30, 2019 Go to the documentation of devtools 0.0.1 Download devtools 0.0.1 archive
Popularity:
Describes how popular the package is relative to other packages. [more]
0
Health:
Code health derived from static analysis. [more]
100
Maintenance:
Reflects how tidy and up-to-date the package is. [more]
80
Overall:
Weighted score of the above. [more]
46
Learn more about scoring.

We analyzed this package on Feb 20, 2019, and provided a score, details, and suggestions below. Analysis was completed with status completed using:

  • Dart: 2.1.0
  • pana: 0.12.13+1

Platforms

Detected platforms: Flutter, web, other

No platform restriction found in libraries.

Maintenance suggestions

Maintain an example. (-10 points)

Create a short demo in the example/ directory to show how to use this package.

Common filename patterns include main.dart, example.dart, and devtools.dart. Packages with multiple examples should provide example/README.md.

For more information see the pub package layout conventions.

Package is pre-v0.1 release. (-10 points)

While nothing is inherently wrong with versions of 0.0.*, it might mean that the author is still experimenting with the general direction of the API.

Dependencies

Package Constraint Resolved Available
Direct dependencies
Dart SDK >=2.1.0-dev <3.0.0
args ^1.5.1 1.5.1
codemirror ^0.5.0+5.43.0 0.5.0+5.43.0
http ^0.12.0+1 0.12.0+1
intl ^0.15.0 0.15.7
js ^0.6.1+1 0.6.1+1
meta ^1.1.0 1.1.7
octicons_css ^0.0.1 0.0.1
path ^1.6.0 1.6.2
pedantic ^1.4.0 1.4.0 1.5.0
polymer_css ^0.0.1 0.0.1
primer_css ^0.0.1 0.0.1
rxdart ^0.20.0 0.20.0
shelf ^0.7.4 0.7.4
shelf_static ^0.2.8 0.2.8
split ^0.0.1 0.0.1
vm_service_lib ^3.14.1 3.14.2
Transitive dependencies
async 2.0.8
charcode 1.1.2
collection 1.14.11
convert 2.1.1
http_parser 3.1.3
mime 0.9.6+2
source_span 1.5.4
stack_trace 1.9.3
stream_channel 1.6.8
string_scanner 1.0.4
term_glyph 1.1.0
typed_data 1.1.6
Dev dependencies
build_runner 1.0.0
build_test any
build_web_compilers any
matcher ^0.12.3
test ^1.0.0
webdev 1.0.1
webkit_inspection_protocol ^0.3.6