问题
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