Intellij Idea hangs when debugging protractor

百般思念 提交于 2020-01-01 17:04:52

问题


I have problem similar to one mentioned in this question.

I'm trying to debug protractor tests in IntelliJ Idea. After I set configuration for Node.js and press Run all tests run properly, but after clicking Debug, I see only:

"C:\Program Files (x86)\JetBrains\IntelliJ IDEA 14.0\bin\runnerw.exe" "C:\Program Files\nodejs\node.exe" --debug-brk=65500 --nolazy --debug node_modules\protractor\lib\cli.js protractor.conf.js
debugger listening on port 65500
[launcher] Running 2 instances of WebDriver

And that's it, no browser windows are opened, and in process explorer only Node process is created.

From what I read --debug-brk option hangs execution on first line - but in Idea debugger it looks like application is running, not hanging on breakpoint.

Used software versions:

  • Intellij Idea 14.0.2 with NodeJs plugin v 139.491
  • Node.js v0.10.35
  • protractor v 1.6.0

回答1:


Take a look at this: http://ng-learn.org/2014/02/Debugging_Protractor_from_WebStorm_Intellij/

And try to run only "1 instance" when you're debugging.



来源:https://stackoverflow.com/questions/27968260/intellij-idea-hangs-when-debugging-protractor

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