Pry is a better debugger for Ruby/Rails
Add binding.pry
anywhere in your Ruby/Rails projects and when the program reaches that breakpoint it will expose a nice console.
If you're inside of a loop, you can break out of this loop with exit-program
(or !!!
).
Written by Cory Simmons
Related protips
Have a fresh tip? Share with Coderwall community!
Post
Post a tip
Best
#Ruby
Authors
Sponsored by #native_company# — Learn More
#native_title#
#native_desc#