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
eaf058d8
Unverified
Commit
eaf058d8
authored
Apr 19, 2019
by
Christopher Fujino
Committed by
GitHub
Apr 19, 2019
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add flutter attach documentation (#31279)
* add attach.md document
parent
a009d711
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
28 additions
and
0 deletions
+28
-0
attach.md
packages/flutter_tools/doc/attach.md
+28
-0
No files found.
packages/flutter_tools/doc/attach.md
0 → 100644
View file @
eaf058d8
# Flutter Attach
## Overview
A Flutter-command that attaches to applications that have been launched
without
`flutter run`
and provides a HotRunner (enabling hot reload/restart).
## Usage
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`
## Source
See the
[
source
](
https://github.com/flutter/flutter/blob/master/packages/flutter_tools/lib/src/commands/attach.dart
)
for the attach command.
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