Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(800)

Unified Diff: sky/HACKING.md

Issue 1242453002: Update sky HACKING.md instructions to use mojo_shell.py. (Closed) Base URL: git@github.com:domokit/mojo.git@master
Patch Set: Update the paths after mojo_shell.py move. Created 5 years, 5 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: sky/HACKING.md
diff --git a/sky/HACKING.md b/sky/HACKING.md
index a147d46ad679a6e0e664b796423da2257d943bd0..20c8c062629d2ffbae437bbe79eaea45922034d6 100644
--- a/sky/HACKING.md
+++ b/sky/HACKING.md
@@ -17,26 +17,19 @@ Running applications
To run an application on your device, run:
-* ``./mojo/tools/mojodb start out/android_Debug [url]``
+* `mojo/devtools/common/mojo_shell --sky [url] --android`
-`mojodb` has numerous commands, visible via `mojodb help`. Common ones include:
-* `mojodb start` BUILD_DIR [url]
-* `mojodb load` [url]
-* `mojodb stop`
-* `mojodb start_tracing` # Starts recoding a performance trace (use stop_tracing to stop)
-* `mojodb print_crash` # Symbolicate the most recent crash from android.
-
-Once `mojodb start` is issued, all subsequent commands will be sent to
-the running mojo_shell instance (even on an attached android device).
-`mojodb start` reads gn args from the passed build directory to
-determine whether its using android, for example.
+When the shell is running, `mojo/devtools/common/debugger` allows you to
+collect traces, symbolize stack crashes and attach gdb if needed. Refer to the
+[documentation](https://github.com/domokit/mojo#debugging-tracing-profiling)
+for the details.
Running tests
-------------
Tests are only supported on Linux currently.
-* ``./sky/tools/test_sky --debug``
+* ``sky/tools/test_sky --debug``
* This runs the tests against ``//out/Debug``. If you want to run against
``//out/Release``, omit the ``--debug`` flag.
@@ -70,20 +63,22 @@ This document aims to explain how to debug Sky itself.
### C++
-Launch a debug Sky build on Linux as follows (where `app.dart` is the
-test you are running and trying to debug):
+Launch a debug Sky build on Android as usual:
-```bash
-mojodb start --gdb out/Debug app.dart
-mojodb gdb_attach
+```
+mojo/devtools/common/mojo_shell --sky [url] --android`
+```
+
+and use the debugger to attach gdb:
+```
+mojo/devtools/common/debugger gdb attach
```
-Once gdb has loaded, hit `c` to start the app. The linux simulator
-will load (slowly), after spawning many threads. When your app
Hixie 2015/07/16 15:40:39 Is it no longer slow? That's great news if so!
-crashes, it will pause in the debugger. At that point, regular gdb
-commands will work: `n` to step over the current statement, `s` to
-step into the current statement, `f` to step out of the current block,
-`c` to continue until the next breakpoint or exception.
+Once gdb has loaded, hit `c` to continue the execution. When your app crashes,
+it will pause in the debugger. At that point, regular gdb commands will work:
+`n` to step over the current statement, `s` to step into the current statement,
+`f` to step out of the current block, `c` to continue until the next breakpoint
+or exception.
### Dart
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698