microsoft / onnxjs

ONNX.js: run ONNX models using JavaScript

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Cannot debug on vscode

Manojbhat09 opened this issue · comments

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.

image

I am not able to test and debug on breakpoints. Whats wrong?

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} ...

Thanks!