Reputation: 1305
Mocha has the option to run tests with mocha debug
, just like node debug
, allowing debug within a REPL
console.
How can I do REPL
debug with Hapi Lab?
Upvotes: 2
Views: 1172
Reputation: 1305
I just have to run node debug node_modules/.bin/lab *.js
, just like @matt-harrison said.
The only tip is: Do not use coverage when debugging, since the coverage will change the original code and make debug difficult.
Upvotes: 1