Add `mojo_run --free-ports` to run servers on system-allocated ports.

This makes mojo devtools use system-allocated ports for all dev servers
that normally are run on fixed ports to facilitate caching (ie. dev
servers spawned for local --origin, --map-origin and --map-url).

Note that this does not affect dev servers with explicitly assigned
fixed ports in a mojoconfig file.

Fixes #477.

R=qsr@chromium.org

Review URL: https://codereview.chromium.org/1419333005 .

Cr-Mirrored-From: https://github.com/domokit/mojo
Cr-Mirrored-Commit: 6f424d79b6c6a87827fcd5a119d7c87c96476bc2
2 files changed
tree: 536bec99e29dc82c50a90373d26dc4e94444d182
  1. android_gdb/
  2. android_stack_parser/
  3. devtoolslib/
  4. docs/
  5. .gitignore
  6. mojo_benchmark
  7. mojo_debug
  8. mojo_run
  9. mojo_test
  10. README.md
  11. remote_adb_setup
README.md

Devtools

Unopinionated tools for running, debugging, testing and benchmarking Mojo apps.

Install

git clone https://github.com/domokit/devtools.git

Contents

Devtools offers the following tools:

Additionally, remote_adb_setup script helps to configure adb on a remote machine to communicate with a device attached to a local machine, forwarding the ports used by mojo_run.

Development

The library is canonically developed in the mojo repository, https://github.com/domokit/devtools is a mirror allowing to consume it separately.