Andrew Grimm Andrew Grimm - 1 year ago 70
Ruby Question

How to refer to a variable called frame while in pry

In Rails, when I'm using pry, how do I refer to a variable called

, as opposed to calling the

I'm using Rails 4.1.x, pry 0.10.3, pry-alias 0.0.1, pry-byebug 3.3.0, and pry-rails 0.3.4.

Answer Source

According to pry documentation:, you need to prefix the ruby code with a semicolon, so pry wouldn't interpret it as a command, like ;frame

Recommended from our users: Dynamic Network Monitoring from WhatsUp Gold from IPSwitch. Free Download