Debugging With BetterErrors Discussion
i use pry. how is this better?
Pry is awesome as well. This is similar and doesn't need to be in your console. It's not as powerful as pry in some areas like being able to cd into objects, so you can use the two together.
Hi Chris,
I'm running into an issue when installing binding_of_caller. When I run bundle install I get the following error An error occurred while installing debug_inspector (0.0.2), and Bundler cannot continue. Make sure that `gem install debug_inspector -v '0.0.2'` succeeds before bundling. I'm not sure how to get around this. Any ideas?
Interesting. I haven't had trouble with that gem before. Did it give you any more text for the error?
cool! I had been using `binding.pry` in my controllers to debug like this but it's definitely faster if I don't have to add and remove that line every time. thanks!
When Rails 5 came out Better Errors was incompatible. Not sure if works with Rails 5 now. But anyway I began using the web-console gem in the development environment instead and it's actually better. It provides the same IRB console when you get an error but you can also insert the console anywhere in your app by adding 'console' in the controller action or <%= console %> in the view. And you don't need to also install binding_of_caller.
Hi Chris!
After watching this video, I remember the conversation we had that I was referring to.
We were discussing debugging. You mentioned that maybe this gem has been updated, or is now a part of rails, or something...
I'd like to use this but before trying to install, wanted to see if you remembered what it was we were discussing. Does this ring a bell?
-Monroe