如何在撬动时引用名为 frame 的变量

How to refer to a variable called frame while in pry

在 Rails 中,当我使用 pry 时,如何引用名为 frame 的变量,而不是调用 frame 命令?

我正在使用 Rails 4.1.x、pry 0.10.3、pry-alias 0.0.1、pry-byebug 3.3.0 和 pry-rails 0.3 .4.

根据 pry 文档:https://github.com/pry/pry/wiki/Command-system#Invoking_commands,您需要在 ruby 代码前加上分号,这样 pry 就不会将其解释为命令,例如 ;frame