我最近下载了 WebStorm 11.0.3 来运行我的 Protractor 测试用例。我的测试用例在正常运行时运行良好(即从运行配置运行)但是当我尝试在 Debug模式下运行我的测试用例时,没有任何实际发生,我在控制台中得到以下信息:
"C:\Program Files (x86)\JetBrains\WebStorm 11.0.3\bin\runnerw.exe" "C:\Program Files\nodejs\node.exe" --debug-brk=58467 --nolazy c:\Users\daobrien15\AppData\Roaming\npm\node_modules\protractor\lib\cli.js conf.js
Debugger listening on port 58467
Using the selenium server at http://127.0.0.1:4444/wd/hub
[launcher] Running 1 instances of WebDriver
Process finished with exit code -1073741819 (0xC0000005)
当我对 Firefox 运行调试时,它只是启动第一个运行 Firefox 屏幕,什么也不做。当我在 Chrome 上运行它时,它只会加载一个带有 data:,
的空白页面。在 URL 栏中,也不执行任何操作。我正在使用以下内容:
OS: Win 7 (64 bit)
Protractor: 3.0.0
Selenium webdriver: 2.48.2
Firefox: 35 as the latest was not working with my tests when run normally
Chrome: 47.0.2526.111 m (Latest)
我也在运行我的 Selenium 网络管理员 通过控制台。如果我使用 ,我会得到几乎相同的结果直连我的 中的选项conf.js 文件:
directConnect: true,
任何帮助将不胜感激。
最佳答案
我有同样的问题。
在您的 webstorm 终端中检查 node.js 的版本:node --version
我的版本是 5.2,我有这个错误。
今天我将节点更新到 5.5.0(最后一个稳定版)并且这个问题消失了。
注意:如果您使用 Webstorm 9 或 10,请转到C:\Program Files (x86)\JetBrains\WebStorm 9.0\bin
并打开 WebStorm64.exe.vmoptions
和 WebStorm.exe.vmoption
s 并最终设置-Dnodejs.debugger.use.jb.support=false
这将有助于在您的断点处停止。
如果您使用 Webstorm 11,您将不会遇到此问题,但如果您愿意 - 使用 WebStorm 9/10 的修复程序。
希望这会帮助你。
关于google-chrome - WebStorm Debug模式不起作用并收到消息 Process completed with exit code -1073741819 (0xC0000005),我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/34861101/