Pry: NoMethodError undefined method `pry' for #<Binding:0x00000105f01990>

Created on 26 Dec 2011  路  8Comments  路  Source: pry/pry

When I try to debug controller with binding.pry I'm getting the above mentioned error.
Using rails (3.1.3)
Using pry (0.9.7.4)

Most helpful comment

Did you require "pry" prior to using it?

All 8 comments

Did you require "pry" prior to using it?

yep
no such file to load -- pry
I've noticed that in console (testing with Guard + Spork) it's working fine during request so it's sort of like not quite an issue.
But there is still NoMethodError in the browser scaring me out.

Is pry in your Gemfile?

jibiel: the pry is only in the development gemset, are you seeing the error in production?

Since there has been no further feedback on this issue it's impossible to diagnose, so i'll close it. @jibiel feel free to reopen if you are still having an issue

Im getting a similar issue:

before_session hook failed: NoMethodError: undefined method process_line' for #<Hash:0x007f85dd826148> /Users/ximengzhu/.rvm/gems/ruby-2.3.0/gems/pry-0.10.3/lib/pry/pry_instance.rb:448:inrun_command'

Other libraries that use the global namespace will conflict. See https://github.com/davetron5000/gli/issues/196

Was this page helpful?
0 / 5 - 0 ratings

Related issues

pnomolos picture pnomolos  路  4Comments

thiagokokada picture thiagokokada  路  5Comments

vaidehijoshi picture vaidehijoshi  路  3Comments

phoet picture phoet  路  9Comments

brandoncc picture brandoncc  路  6Comments