(See also my npm setup, and useful global packages)
$ node <APP>
$ mocha
$ node --use_strict <APP>
Not possible with mocha, AFAIK.
-
$ node --inspect[=<PORT>] <APP>
- Open
about:inspect
in Chrom* (you'll be redirected tochrome://inspect
) - Click “Open dedicated DevTools for Node”
- Preferred:
$ node --inspect ./node_modules/mocha/bin/mocha <APP>
- Old:
Then visit
$ mocha --debug-brk & node-inspector [-p <PORT>]
http://localhost:PORT
on Chrom*. - Also:
$ node-debug [-p <PORT>] _mocha