Let flutter attach find the service port by looking through old logs again (#53153)
This commit is contained in:
@@ -9,19 +9,17 @@ without `flutter run` and provides a HotRunner (enabling hot reload/restart).
|
||||
|
||||
There are four ways for the attach command to discover a running app:
|
||||
|
||||
1. If the app is already running and the observatory port is known, it can be
|
||||
explicitly provided to attach via the command-line, e.g. `$ flutter attach
|
||||
--debug-port 12345`
|
||||
1. If the app is already running and the platform is iOS, attach can use mDNS
|
||||
to lookup the observatory port via the application ID, with just `$ flutter
|
||||
attach`
|
||||
1. If the platform is Fuchsia the module name must be provided, e.g. `$
|
||||
flutter attach --module=mod_name`. This can be called either before or after
|
||||
the application is started, attach will poll the device if it cannot
|
||||
immediately discover the port
|
||||
1. On other platforms (i.e. Android), if the app is not yet running attach
|
||||
will listen and wait for the app to be (manually) started with the default
|
||||
command: `$ flutter attach`
|
||||
1. On Android and iOS, just running `flutter attach` suffices. Flutter tools
|
||||
will search for an already running Flutter app or module if available.
|
||||
Otherwise, the tool will wait for the next Flutter app or module to launch
|
||||
before attaching.
|
||||
1. If the app or module is already running and the specific observatory port is
|
||||
known, it can be explicitly provided to attach via the command-line, e.g.
|
||||
`$ flutter attach --debug-port 12345`
|
||||
|
||||
## Source
|
||||
|
||||
|
||||
Reference in New Issue
Block a user