在 VS 代码中调试打字稿测试

debugging typescript tests in VS code

我正在按照此处 http://devexpress.github.io/testcafe/documentation/recipes/debug-in-visual-studio-code.html 中的步骤在 VS 代码中调试 testcafe typescript 测试,但由于某种原因,它不适用于调试 typescript 测试。对此有什么想法吗?

好的,我发现了问题,它与我的 launch.json 文件有关

for program launch.json 中的参数以前我使用 "program": "${workspaceRoot}/node_modules/.bin/testcafe" 将其更改为 "program": "${workspaceRoot}/node_modules/testcafe/bin/testcafe.js" 工作并且调试现在正在工作。