节点检查器未触发实习测试的断点 [英] Node Inspector not hitting breakpoint for Intern test
问题描述
- 启动Selenium [实习测试]
-
在节点环境中运行实习测试
C:\\\
ode\\\
ode --debug -brk node_modules / intern / runner.js config = tests / intern -
在另一个cmd中,我运行节点检查器
node-inspector --web-port = 9999&
-
启动浏览器
我可以看到我的项目的所有脚本。我在其中一个测试组件中设置了断点。但是当我恢复调试器的时候,测试开始运行,但断点从不被打。我究竟做错了什么 ?
我认为你应该添加 debugger;
断点
I am trying to debug my intern test using node inspector. I followed all the steps correctly from here. I gave it a run by performing the following command
- Start Selenium[for intern test]
Run the intern test in node environment
C:\node\node --debug-brk node_modules/intern/runner.js config=tests/intern
In another cmd I run the node inspector
node-inspector --web-port=9999 &
Start the browser
I can see all the script of my project. I have break point set in one of the test component. But the moment I resume the debugger the test start running but the breakpoint is never hit. What am I doing wrong ?
I think you should add debugger;
into your script as a break point
这篇关于节点检查器未触发实习测试的断点的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!