You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Mocha supports the --inspect and --inspect-brk options:
--inspect // activate devtools in chrome
--inspect-brk // activate devtools in chrome and break on the first line
It would be helpful if mochapack can pass these options through to mocha.
The text was updated successfully, but these errors were encountered:
I guess you are looking to get good debugging experience with this tool, not just pass --inspect to node. The latter is easy, just launch it as node node_module/.bin/mochapack --inspect --inspect-brk ....
I have submitted example project that follows the docs to set up debugging, in this PR: #10
It mostly works for me, but there is rather nasty issue, that on the first mochapack run my breakpoints do not get hit, on the second run they work fine. So in order to debug I have to start mochapack in watch mode, then allow it to run the tests, then I set breakpoint in the test of concern and modify this test slightly, this triggers second run of mochapack and my breakpoint hit this time (teseted in VS Code and in Google Chrome)
Mocha supports the --inspect and --inspect-brk options:
--inspect // activate devtools in chrome
--inspect-brk // activate devtools in chrome and break on the first line
It would be helpful if mochapack can pass these options through to mocha.
The text was updated successfully, but these errors were encountered: