Cannot debug on vscode
Manojbhat09 opened this issue · comments
Manoj Bhat commented
As followed in the development.md I install vscode, and all the dependencies.
When I run npm test --debug on a separate terminal, in browser click on debug and go to vscode to run debugger "Attach to chrome" I get this error after a while. And in that cmd, the tests go on and stop once done.
I am not able to test and debug on breakpoints. Whats wrong?
Manoj Bhat commented
Ping @fs-eire !
Yulong Wang commented
there is a trick: you need to put all parameters of test runner after a double dash, like this:
npm test -- --debug
this is because npm parses and removes all parameters before the first --
npm {npm param0} {npm param1} {npm param2} ... -- {param0} {param1} {param2} ...
Manoj Bhat commented
Thanks!