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?
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?
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.