With the latest version of protractor (2.1.0) the debugging experience seems much more functional. However, while browser.pause() does drop into the debug session, after I type repl no other input does anything.
| | | Frame::217
wd-debug> repl
> this.browser
And there it hangs until I hit enter again at which point I can type exit which brings up these errors:
Error: ECONNREFUSED connect ECONNREFUSED
at ClientRequest.<anonymous> (/Users/jrust/code/crab/behavior/node_modules/protractor/node_modules/selenium-webdriver/http/index.js:145:16)
at ClientRequest.emit (events.js:107:17)
at Socket.socketErrorListener (_http_client.js:272:9)
at Socket.emit (events.js:107:17)
at net.js:451:14
at process._tickDomainCallback (node.js:381:11)
From: Task: empty debugger hook
at [object Object].webdriver.WebDriver.schedule (/Users/jrust/code/crab/behavior/node_modules/protractor/node_modules/selenium-webdriver/lib/webdriver/webdriver.js:360:15)
at [object Object].Protractor.executeScript_ (/Users/jrust/code/crab/behavior/node_modules/protractor/lib/protractor.js:235:22)
at /Users/jrust/code/crab/behavior/node_modules/protractor/lib/protractor.js:747:34
at [object Object].promise.ControlFlow.runInFrame_ (/Users/jrust/code/crab/behavior/node_modules/protractor/node_modules/selenium-webdriver/lib/webdriver/promise.js:1877:20)
at [object Object].promise.Callback_.goog.defineClass.notify (/Users/jrust/code/crab/behavior/node_modules/protractor/node_modules/selenium-webdriver/lib/webdriver/promise.js:2464:25)
at [object Object].promise.Promise.notify_ (/Users/jrust/code/crab/behavior/node_modules/protractor/node_modules/selenium-webdriver/lib/webdriver/promise.js:563:12)
at Array.forEach (native)
at Object.goog.array.forEach (/Users/jrust/code/crab/behavior/node_modules/protractor/node_modules/selenium-webdriver/lib/goog/array/array.js:203:43)
at [object Object].promise.Promise.notifyAll_ (/Users/jrust/code/crab/behavior/node_modules/protractor/node_modules/selenium-webdriver/lib/webdriver/promise.js:552:16)
at goog.async.run.processWorkQueue (/Users/jrust/code/crab/behavior/node_modules/protractor/node_modules/selenium-webdriver/lib/goog/async/run.js:125:21)
at runMicrotasksCallback (node.js:337:7)
at process._tickDomainCallback (node.js:381:11)
If I run protractor manually then the debugging works without any issues. Any tips to get it working with the grunt runner would be appreciated.
With the latest version of protractor (2.1.0) the debugging experience seems much more functional. However, while
browser.pause()
does drop into the debug session, after I typerepl
no other input does anything.And there it hangs until I hit enter again at which point I can type
exit
which brings up these errors:If I run protractor manually then the debugging works without any issues. Any tips to get it working with the grunt runner would be appreciated.