From 18025458656448a728d3ef16ece431c47fa9cbc2 Mon Sep 17 00:00:00 2001 From: Jason Laster Date: Thu, 13 Apr 2017 18:50:21 -0400 Subject: [PATCH] Document debugging strategies (#1253) --- README.md | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/README.md b/README.md index 7465592d..5b8a265f 100644 --- a/README.md +++ b/README.md @@ -470,6 +470,10 @@ Here's what you need to know about the tests: * `tests/flow/` contains the Flow test suite, and is not supposed to be edited by hand. To update it, clone the Flow repo next to the Prettier repo and run: `node scripts/sync-flow-tests.js ../flow/tests/`. +* If you would like to debug prettier locally, you can either debug it in node + or the browser. The easiest way to debug it in the browser is to run the + interactive `docs` REPL locally. The easiest way to debug it in node, is to + create a local test file and run it in an editor like VS Code. If you can, take look at [commands.md](commands.md) and check out [Wadler's paper](http://homepages.inf.ed.ac.uk/wadler/papers/prettier/prettier.pdf) to