调试量角器时,Intellij Idea会挂起 [英] Intellij Idea hangs when debugging protractor
问题描述
我遇到的问题类似于这个问题。
我正在尝试调试IntelliJ Idea中的量角器测试。在为Node.js设置配置并按运行后,所有测试都正常运行,但在单击 Debug 之后,我只看到:
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.
从我读的 - debug-brk
选项挂起第一行的执行 - 但在Idea调试器中它看起来就像应用程序正在运行,而不是挂在断点上。
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.
二手软件版本:
- Intellij Idea 14.0.2 with NodeJs plugin v 139.491
- Node.js v0.10.35
- 量角器v 1.6.0
推荐答案
看看这个: http://ng-learn.org/2014/02/Debugging_Protractor_from_WebStorm_Intellij/
并尝试运行在调试时只有1个实例。
And try to run only "1 instance" when you're debugging.
这篇关于调试量角器时,Intellij Idea会挂起的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!