Skip to content

Commit

Permalink
Merge pull request #21 from odegroot/hacking
Browse files Browse the repository at this point in the history
The debug instructions didn't work (anymore). Changed them to something that works.
  • Loading branch information
jauco committed May 13, 2015
2 parents f4ba91f + 30c7331 commit 6f84474
Showing 1 changed file with 5 additions and 13 deletions.
18 changes: 5 additions & 13 deletions HACKING.md
Original file line number Diff line number Diff line change
@@ -1,25 +1,17 @@
# How to debug Jester

You attach a graphical debugger ([node-inspector]) to jester.
You attach a graphical debugger ([Node Inspector]) to jester.

- Install [node-inspector] somewhere. Doesn't matter where.
- Install [Node Inspector] somewhere. Doesn't matter where.

$ npm install node-inspector

- Start node-inspector.

$ node_modules/.bin/node-inspector
Node Inspector v0.7.4
Visit http://127.0.0.1:8080/debug?port=5858 to start debugging.

*node-inspector* now waits for the process-to-debug on port 5858, and for you on port 8080.

- Start jester in debug mode.

$ node --debug-brk node_modules/jester-tester/src/bin/jester-watch.js
$ node-debug node_modules/jester-tester/src/bin/jester-watch.js
debugger listening on port 5858

- Browse to http://127.0.0.1:8080/debug?port=5858.
- Node Inspector opens http://127.0.0.1:8080/debug?ws=127.0.0.1:8080&port=5858 in a browser.
- Place your breakpoints and press the play button to start running jester.

[node-inspector]: https://npmjs.org/package/node-inspector
[Node Inspector]: https://npmjs.org/package/node-inspector

0 comments on commit 6f84474

Please sign in to comment.