2

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?

paulodiovani
  • 1,208
  • 2
  • 16
  • 34

1 Answers1

1

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.

paulodiovani
  • 1,208
  • 2
  • 16
  • 34