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

Unified Diff: README.md

Issue 1573223003: Add a Debugging section to the README. (Closed) Base URL: git@github.com:dart-lang/test@master
Patch Set: Created 4 years, 11 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: README.md
diff --git a/README.md b/README.md
index ea060a7824c1e8b5bac0f3561c19920a742721e3..44957eac98577c3a221bd0526c1d67210af0f9cf 100644
--- a/README.md
+++ b/README.md
@@ -471,6 +471,27 @@ If multiple platforms match, the configuration is applied in order from first to
last, just as they would in nested groups. This means that for configuration
like duration-based timeouts, the last matching value wins.
+## Debugging
+
+Tests can be debugged interactively using browsers' built-in development tools,
+including Observatory when you're using Dartium. Currently there's no support
+for interactively debugging command-line VM tests, but it will be added
+[in the future][issue 50].
+
+[issue 50]: https://github.com/dart-lang/test/issues/50
+
+The first step when debugging is to pass the `--pause-after-load` flag to the
+test runner. This pauses the browser after each test suite has loaded, so that
+you have time to open the development tools and set breakpoints. For Dartium,
+the test runner will print the Observatory URL for you. For PhantomJS, it will
+print the remote debugger URL. For content shell, it'll print both!
+
+Once you've set breakpoints, either click the big arrow in the middle of the web
+page or press Enter in your terminal to start the tests running. When you hit a
+breakpoint, the runner will open its own debugging console in the terminal that
+controls how tests are run. You can type "restart" there to re-run your test as
+many times as you need to figure out what's going on.
+
## Testing With `barback`
Packages using the `barback` transformer system may need to test code that's
« 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