paulodiovani
paulodiovani

Reputation: 1305

How to debug on console with Hapi.js Lab test framework?

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

Answers (1)

paulodiovani
paulodiovani

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

Related Questions