Updated instructions of 'flutter help attach' (#61569)

This commit is contained in:
Pragya
2020-07-23 07:01:12 +05:30
committed by GitHub
parent 9e2e0ef3b4
commit d95f79f95f
2 changed files with 15 additions and 2 deletions

View File

@@ -111,7 +111,20 @@ class AttachCommand extends FlutterCommand {
final String name = 'attach';
@override
final String description = 'Attach to a running application.';
final String description = '''Attach to a running application.
For attaching to Android or iOS devices, simply using `flutter attach` is
usually sufficient. The tool will search for a running Flutter app or module,
if available. Otherwise, the tool will wait for the next Flutter app or module
to launch before attaching.
For 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.
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`''';
int get debugPort {
if (argResults['debug-port'] == null) {