Anyone writing Ruby should take a 30 min to learn more about pry and byebug. My favorite features are `ls`, `backtrace`, and `find-method`.
-
-
Replying to @backus
Pry's `ls` command lists the methods and variables available in the current scope. `ls --locals` shows local variables and their values!pic.twitter.com/i80aPbFxhM
1 reply 1 retweet 3 likes -
Replying to @backus
Pry's `find-method` searches for methods matching a regex. This is how I learned Nokogiri can give you the CSS path and XPATH for any node.pic.twitter.com/aj30PGjDN8
1 reply 1 retweet 0 likes
`pry-backtrace` is nice, but byebug's `backtrace` is great. It shows each frame's call signature with type annotations for the arguments.pic.twitter.com/KqZ7OBSynK
0 replies
1 retweet
2 likes
Loading seems to be taking a while.
Twitter may be over capacity or experiencing a momentary hiccup. Try again or visit Twitter Status for more information.