简体   繁体   English

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

[英]debugging typescript tests in VS code

I am following steps from here http://devexpress.github.io/testcafe/documentation/recipes/debug-in-visual-studio-code.html to debug testcafe typescript tests in VS code but for some reason, it is not working for debugging typescript tests.我正在按照这里的步骤http://devexpress.github.io/testcafe/documentation/recipes/debug-in-visual-studio-code.html在 VS 代码中调试 testcafe打字稿测试,但由于某种原因,它不起作用用于调试打字稿测试。 any idea on this?对此有什么想法吗?

ok i found the problem and its with my launch.json file好的,我发现问题及其与我的 launch.json 文件有关

for program parameter in launch.json previously i am using "program": "${workspaceRoot}/node_modules/.bin/testcafe" changing it to "program": "${workspaceRoot}/node_modules/testcafe/bin/testcafe.js" worked and debugging is working now.对于 launch.json 中的程序参数,我以前使用的是"program": "${workspaceRoot}/node_modules/.bin/testcafe"将其更改为"program": "${workspaceRoot}/node_modules/testcafe/bin/testcafe.js"工作和调试现在工作。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM