Change documentation for how to log using sky_tool
This commit is contained in:
parent
aa8942f4cf
commit
636e9db814
@ -77,16 +77,15 @@ expects to be run from the root directory of your application's package (i.e.,
|
|||||||
the same directory that contains the `pubspec.yaml` file).
|
the same directory that contains the `pubspec.yaml` file).
|
||||||
|
|
||||||
To run your app with logging, run this command:
|
To run your app with logging, run this command:
|
||||||
- `./packages/sky/sky_tool start --checked && adb logcat -s sky chromium`
|
- `./packages/sky/sky_tool start --checked && ./packages/sky/sky_tool logs`
|
||||||
|
|
||||||
The `sky_tool start` command starts the dev server and uploads your app to the device, installing `SkyShell.apk` if needed.
|
The `sky_tool start` command starts the dev server and uploads your app to the device, installing `SkyShell.apk` if needed.
|
||||||
The `--checked` flag triggers checked mode, in which types are checked, asserts are run, and
|
The `--checked` flag triggers checked mode, in which types are checked, asserts are run, and
|
||||||
various [debugging features](https://github.com/domokit/sky_engine/blob/master/sky/packages/sky/lib/base/debug.dart) are enabled.
|
various [debugging features](https://github.com/domokit/sky_engine/blob/master/sky/packages/sky/lib/base/debug.dart) are enabled.
|
||||||
The `adb logcat` command logs errors and Dart `print()` output from the app. The `-s sky chromium`
|
The `sky_tool logs` command logs errors and Dart `print()` output from the app, automatically limiting the output to just output from Sky Dart code and the Sky Engine C++ code (which
|
||||||
argument limits the output to just output from Sky Dart code and the Sky Engine C++ code (which
|
|
||||||
for historical reasons currently uses the tag `chromium`.)
|
for historical reasons currently uses the tag `chromium`.)
|
||||||
|
|
||||||
To avoid confusion from old log messages, you may wish to run `adb logcat -c` before calling
|
To avoid confusion from old log messages, you may wish to call `sky_tool logs --clear` before calling
|
||||||
`sky_tool start`, to clear the log between runs.
|
`sky_tool start`, to clear the log between runs.
|
||||||
|
|
||||||
Rapid Iteration
|
Rapid Iteration
|
||||||
|
Loading…
x
Reference in New Issue
Block a user