Mocha breakpoints using Visual Studio Code

后端 未结 20 1298
星月不相逢
星月不相逢 2020-12-12 11:52

Is it possible to add breakpoints to ones Mocha tests using Visual Studio Code?

Normally when debugging code one need to configure the launch.json, setting the prog

20条回答
  •  感情败类
    2020-12-12 12:17

    For anyone using Windows. If you have installed mocha globally then setting program to the following path worked for me (swap in your username).

    "program": "C:\\Users\\myname\\AppData\\Roaming\\npm\\node_modules\\mocha\\bin\\_mocha"
    

提交回复
热议问题