Is it possible to add breakpoints to ones Mocha tests using Visual Studio Code?
Another way is to use the
--debug-brk command line option of mocha and the default
Attach launch setting of the Visual Studio Code debugger.
Suggested deeper explanation (from André)
To do this:
Run mocha from the command line using this command:
Now in VS Code click on the Debug icon, then select
Attach from the option next to the start button. Add breakpoints in VS Code and then click start.