-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #21 from odegroot/hacking
The debug instructions didn't work (anymore). Changed them to something that works.
- Loading branch information
Showing
1 changed file
with
5 additions
and
13 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |