vscode-mocha-test-adapter icon indicating copy to clipboard operation
vscode-mocha-test-adapter copied to clipboard

disable mocha parallel mode if tests are being debugged

Open eramitmittal opened this issue 2 years ago • 1 comments

If mocha is set to run in parallel mode, then breakpoints in test code fail to be hit. This is because mocha itself tries to run tests using worker pool, while debugger is waiting on main mocha thread.

Parallel mode in general does not make sense while trying to debug tests using this extension. Ignoring parallel mode setting while running the tests in debug mode fixes the breakpoint problem.

eramitmittal avatar Jun 06 '23 17:06 eramitmittal

this will partly fix #238 (breakpoints not hit when parallel is true)

eramitmittal avatar Jun 06 '23 17:06 eramitmittal