Skip to content

Commit

Permalink
Re-added debug instructions.
Browse files Browse the repository at this point in the history
  • Loading branch information
Oscar de Groot committed Jun 25, 2014
1 parent ab28734 commit bf27283
Showing 1 changed file with 22 additions and 0 deletions.
22 changes: 22 additions & 0 deletions HACKING.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
# How to debug Jester

You attach a graphical debugger ([node-inspector]) to the unittests, or to the compiled jester.js

### Attaching the debugger to the compiled jester.js

1. Start node-inspector on port 8080:

$ cd <jester source dir>
$ .\dist\node_modules\.bin\node-inspector --web-port=8080
info - socket.io started
visit http://0.0.0.0:8080/debug?port=5858 to start debugging

2. Start jester in debug mode:

$ .\dist\node.exe --debug-brk .\dist\jester.js
debugger listening on port 5858

3. Open a browser on http://localhost:8080
4. place your breakpoints and press the play button to start running jester.

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

0 comments on commit bf27283

Please sign in to comment.