mirror of
https://github.com/teampoltergeist/poltergeist.git
synced 2022-11-09 12:05:00 -05:00
Merge pull request #119 from nestd/master
Clear error why the remote debugger could not be used
This commit is contained in:
commit
d5f7ffa2f9
1 changed files with 7 additions and 2 deletions
|
@ -129,8 +129,13 @@ module Capybara::Poltergeist
|
|||
end
|
||||
|
||||
def debug
|
||||
inspector.open
|
||||
pause
|
||||
if @options[:inspector]
|
||||
inspector.open
|
||||
pause
|
||||
else
|
||||
raise Error, "To use the remote debugging, you have to launch the driver " \
|
||||
"with `:inspector => true` configuration option"
|
||||
end
|
||||
end
|
||||
|
||||
def pause
|
||||
|
|
Loading…
Add table
Reference in a new issue