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
0ee7fabe
Commit
0ee7fabe
authored
Mar 30, 2017
by
John McCutchan
Committed by
GitHub
Mar 30, 2017
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Improve verbose trace output (#9104)
Related #8876
parent
d709f18c
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
17 additions
and
3 deletions
+17
-3
devfs.dart
packages/flutter_tools/lib/src/devfs.dart
+4
-2
resident_runner.dart
packages/flutter_tools/lib/src/resident_runner.dart
+13
-1
No files found.
packages/flutter_tools/lib/src/devfs.dart
View file @
0ee7fabe
...
...
@@ -339,14 +339,16 @@ class DevFS {
Uri
get
baseUri
=>
_baseUri
;
Future
<
Uri
>
create
()
async
{
printTrace
(
'DevFS: Creating new filesystem on the device (
$_baseUri
)'
);
_baseUri
=
await
_operations
.
create
(
fsName
);
printTrace
(
'DevFS: Created new filesystem on the device (
$_baseUri
)'
);
return
_baseUri
;
}
Future
<
dynamic
>
destroy
()
{
Future
<
Null
>
destroy
()
async
{
printTrace
(
'DevFS: Deleting filesystem on the device (
$_baseUri
)'
);
await
_operations
.
destroy
(
fsName
);
printTrace
(
'DevFS: Deleted filesystem on the device (
$_baseUri
)'
);
return
_operations
.
destroy
(
fsName
);
}
/// Update files on the device and return the number of bytes sync'd
...
...
packages/flutter_tools/lib/src/resident_runner.dart
View file @
0ee7fabe
...
...
@@ -226,7 +226,19 @@ abstract class ResidentRunner {
throwToolExit
(
'No Flutter view is available'
);
// Listen for service protocol connection to close.
vmService
.
done
.
whenComplete
(
appFinished
);
vmService
.
done
.
then
<
Null
>(
_serviceProtocolDone
,
onError:
_serviceProtocolError
).
whenComplete
(
appFinished
);
}
Future
<
Null
>
_serviceProtocolDone
(
dynamic
object
)
{
printTrace
(
'Service protocol connection closed.'
);
return
new
Future
<
Null
>.
value
(
object
);
}
Future
<
Null
>
_serviceProtocolError
(
dynamic
error
,
StackTrace
stack
)
{
printTrace
(
'Service protocol connection closed with an error:
$error
\n
$stack
'
);
return
new
Future
<
Null
>.
error
(
error
,
stack
);
}
/// Returns [true] if the input has been handled by this function.
...
...
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