Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Sign in
Toggle navigation
F
Front-End
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
abdullh.alsoleman
Front-End
Commits
d95f79f9
Unverified
Commit
d95f79f9
authored
Jul 23, 2020
by
Pragya
Committed by
GitHub
Jul 23, 2020
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Updated instructions of 'flutter help attach' (#61569)
parent
9e2e0ef3
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
15 additions
and
2 deletions
+15
-2
attach.md
packages/flutter_tools/doc/attach.md
+1
-1
attach.dart
packages/flutter_tools/lib/src/commands/attach.dart
+14
-1
No files found.
packages/flutter_tools/doc/attach.md
View file @
d95f79f9
...
@@ -7,7 +7,7 @@ without `flutter run` and provides a HotRunner (enabling hot reload/restart).
...
@@ -7,7 +7,7 @@ without `flutter run` and provides a HotRunner (enabling hot reload/restart).
## Usage
## Usage
There are
four
ways for the attach command to discover a running app:
There are
three
ways for the attach command to discover a running app:
1.
If the platform is Fuchsia the module name must be provided, e.g.
`$
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
flutter attach --module=mod_name`
. This can be called either before or after
...
...
packages/flutter_tools/lib/src/commands/attach.dart
View file @
d95f79f9
...
@@ -111,7 +111,20 @@ class AttachCommand extends FlutterCommand {
...
@@ -111,7 +111,20 @@ class AttachCommand extends FlutterCommand {
final
String
name
=
'attach'
;
final
String
name
=
'attach'
;
@override
@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
{
int
get
debugPort
{
if
(
argResults
[
'debug-port'
]
==
null
)
{
if
(
argResults
[
'debug-port'
]
==
null
)
{
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment