Debugging your scripts with Pry

One cool thing that came out of SelConf 2013 (I wasn’t able to attend … just experienced it online) was Dave Haeffner‘s new Selenium tutorial Elemental Selenium. Its an email newsletter published once a week with a Selenium tip (in Ruby!) focusing on the basic foundations of how to solve certain problems. This is mainly aimed at beginning Selenium users, but anyone using Selenium and Ruby would find the tips useful. I have learned some new ideas and ways to address certain problems that I hadn’t thought of before from some of his tips. You can also browse the repository of archived tips on the website as well.

After Dave posted tip 11 about building a simple REPL to debug your tests, I started up a conversation with him about the benefits of using Pry over writing a simple debugger. The sum total of the conversation resulted in Dave asking me to write a guest tip on the subject.

LOL, I think it turned out pretty well. Go check it out and let me know your thoughts.


Leave a Reply

Fill in your details below or click an icon to log in: Logo

You are commenting using your account. Log Out /  Change )

Google+ photo

You are commenting using your Google+ account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )


Connecting to %s