Node Inspector not hitting breakpoint for Intern test

耗尽温柔 提交于 2019-12-12 02:44:19

问题


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

  1. Start Selenium[for intern test]
  2. Run the intern test in node environment

    C:\node\node --debug-brk node_modules/intern/runner.js config=tests/intern

  3. In another cmd I run the node inspector

    node-inspector --web-port=9999 &

  4. Start the browser

    http://127.0.0.1:9999/?ws=127.0.0.1:9999&port=5858

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 ?


回答1:


I think you should add debugger; into your script as a break point



来源:https://stackoverflow.com/questions/32637360/node-inspector-not-hitting-breakpoint-for-intern-test

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!