Chromium Code Reviews| OLD | NEW |
|---|---|
| 1 Hacking on Sky | 1 Hacking on Sky |
| 2 ============== | 2 ============== |
| 3 | 3 |
| 4 Building | 4 Building |
| 5 -------- | 5 -------- |
| 6 | 6 |
| 7 * Follow the setup & build instructions for [Mojo](https://github.com/domokit/mo jo) | 7 * Follow the setup & build instructions for [Mojo](https://github.com/domokit/mo jo) |
| 8 | 8 |
| 9 The build directory will be `out/Debug` for Linux debug builds, and | 9 The build directory will be `out/Debug` for Linux debug builds, and |
| 10 `out/Release` for Linux release builds. For Android builds, prefix | 10 `out/Release` for Linux release builds. For Android builds, prefix |
| (...skipping 42 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 53 * Type the URL you wish to run, for example ``http://127.0.0.1:8000/sky/tests/wi dgets/dialog.dart``, and press the enter key | 53 * Type the URL you wish to run, for example ``http://127.0.0.1:8000/sky/tests/wi dgets/dialog.dart``, and press the enter key |
| 54 * The harness should print the results of the test. You can then type another U RL. | 54 * The harness should print the results of the test. You can then type another U RL. |
| 55 | 55 |
| 56 Writing tests | 56 Writing tests |
| 57 ------------- | 57 ------------- |
| 58 | 58 |
| 59 We recommend using the [Dart | 59 We recommend using the [Dart |
| 60 ``test``](https://pub.dartlang.org/packages/test) testing framework. | 60 ``test``](https://pub.dartlang.org/packages/test) testing framework. |
| 61 See [``sky/tests/raw/color_bounds.dart``](tests/raw/color_bounds.dart) | 61 See [``sky/tests/raw/color_bounds.dart``](tests/raw/color_bounds.dart) |
| 62 for an example. | 62 for an example. |
| 63 | |
| 64 Debugging Sky | |
| 65 ------------- | |
| 66 | |
| 67 This document aims to explain how to debug Sky itself. | |
| 68 | |
| 69 === C++ | |
| 70 | |
| 71 Launch a debug Sky build on Linux as follows (where `app.dart` is the | |
| 72 test you are running and trying to debug): | |
| 73 | |
| 74 ```bash | |
| 75 mojodb start --gdb out/Debug app.dart | |
|
eseidel
2015/06/22 21:28:18
These are soon to be deprecated instructions, care
| |
| 76 mojodb gdb_attach | |
| 77 ``` | |
| 78 | |
| 79 === Dart | |
| 80 | |
| 81 Use Observatory. | |
| OLD | NEW |