pry
Good stuff for debugging
https://github.com/pry/pryinstall :
gem install pryusage:
1. put "require pry" in front of the code.2. put "binding.pry" just before the line of code that needed to debug.
3. excute the code.
4. pry will stop at the line where you put "binding pry".
5. try to get the value of objects, variables and methods.
6. Ctrl-D to continue.
No comments:
Post a Comment