jasmine-node-debug

On of the major stages in script development is tracking variables, flow and objects. A code that runs without and stoppage or break doesn't necessarily mean it's doing the right thing. Ergo, code debugging plays a crucial role in identifying these bugs/anomalies and fixing them. This blog focuses on debugging of Jasmine scripts written in Javascript. For simplification purpose I am not using any web commands but only javascript code.

jasmine-node-debug
It is a node module which is used to run the jasmine test which in turn gives a url which provides a web interface for debugging.

Installation:
npm install -g jasmine-node-debug
jasmine.js path : Locate the index.js file
edit the path to specify jasmine.js file
Save
Run
Instead of cmd>jasmine the command will be
jasmine-node-debug

Refer this link for details on how to run jasmine test.
Navigate to the link specified above:
See the tool-tip on the top right-hand.
Press F8 and the jasmine test will appear.


Time to play with it

Comments

Popular Posts