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
25820ab2
Unverified
Commit
25820ab2
authored
Mar 14, 2019
by
Jonah Williams
Committed by
GitHub
Mar 14, 2019
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
add option for --verbose-system-logs (#29321)
parent
7ac2486a
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
15 additions
and
0 deletions
+15
-0
android_device.dart
packages/flutter_tools/lib/src/android/android_device.dart
+3
-0
run.dart
packages/flutter_tools/lib/src/commands/run.dart
+5
-0
device.dart
packages/flutter_tools/lib/src/device.dart
+3
-0
devices.dart
packages/flutter_tools/lib/src/ios/devices.dart
+4
-0
No files found.
packages/flutter_tools/lib/src/android/android_device.dart
View file @
25820ab2
...
...
@@ -439,6 +439,9 @@ class AndroidDevice extends Device {
cmd
.
addAll
(<
String
>[
'--ez'
,
'start-paused'
,
'true'
]);
if
(
debuggingOptions
.
useTestFonts
)
cmd
.
addAll
(<
String
>[
'--ez'
,
'use-test-fonts'
,
'true'
]);
if
(
debuggingOptions
.
verboseSystemLogs
)
{
cmd
.
addAll
(<
String
>[
'--ez'
,
'--verbose-logging'
,
'true'
]);
}
}
cmd
.
add
(
apk
.
launchActivity
);
final
String
result
=
(
await
runCheckedAsync
(
cmd
)).
stdout
;
...
...
packages/flutter_tools/lib/src/commands/run.dart
View file @
25820ab2
...
...
@@ -32,6 +32,10 @@ abstract class RunCommandBase extends FlutterCommand {
negatable:
false
,
help:
'Trace application startup, then exit, saving the trace to a file.'
,
)
..
addFlag
(
'verbose-system-logs'
,
negatable:
false
,
help:
'Include verbose logging from the flutter engine.'
)
..
addOption
(
'route'
,
help:
'Which route to load when running the app.'
,
)
...
...
@@ -256,6 +260,7 @@ class RunCommand extends RunCommandBase {
traceSkia:
argResults
[
'trace-skia'
],
traceSystrace:
argResults
[
'trace-systrace'
],
observatoryPort:
observatoryPort
,
verboseSystemLogs:
argResults
[
'verbose-system-logs'
],
);
}
}
...
...
packages/flutter_tools/lib/src/device.dart
View file @
25820ab2
...
...
@@ -372,6 +372,7 @@ class DebuggingOptions {
this
.
traceSkia
=
false
,
this
.
traceSystrace
=
false
,
this
.
useTestFonts
=
false
,
this
.
verboseSystemLogs
=
false
,
this
.
observatoryPort
,
})
:
debuggingEnabled
=
true
;
...
...
@@ -383,6 +384,7 @@ class DebuggingOptions {
skiaDeterministicRendering
=
false
,
traceSkia
=
false
,
traceSystrace
=
false
,
verboseSystemLogs
=
false
,
observatoryPort
=
null
;
final
bool
debuggingEnabled
;
...
...
@@ -394,6 +396,7 @@ class DebuggingOptions {
final
bool
traceSkia
;
final
bool
traceSystrace
;
final
bool
useTestFonts
;
final
bool
verboseSystemLogs
;
final
int
observatoryPort
;
bool
get
hasObservatoryPort
=>
observatoryPort
!=
null
;
...
...
packages/flutter_tools/lib/src/ios/devices.dart
View file @
25820ab2
...
...
@@ -297,6 +297,10 @@ class IOSDevice extends Device {
if
(
debuggingOptions
.
traceSkia
)
launchArguments
.
add
(
'--trace-skia'
);
if
(
debuggingOptions
.
verboseSystemLogs
)
{
launchArguments
.
add
(
'--verbose-logging'
);
}
if
(
platformArgs
[
'trace-startup'
]
??
false
)
launchArguments
.
add
(
'--trace-startup'
);
...
...
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