作者热门文章
- xml - AJAX/Jquery XML 解析
- 具有多重继承的 XML 模式
- .net - 枚举序列化 Json 与 XML
- XML 简单类型、简单内容、复杂类型、复杂内容
如果遇到异常(例如,如果您只是在脚本末尾放置一个 undefined variable “x”),Pry 会进入交互模式。
(此外,如果在脚本本身内您需要'pry'
并将binding.pry
放在您想要进行交互的位置。)
但我想知道:当我在命令提示符下输入 pry example.rb
命令时,是否有某种标志/选项/参数可以添加到命令中,所以它会当它到达执行any example.rb
脚本的末尾时开始交互,不管里面是什么? (当然,假设结束前没有异常。)
最佳答案
还没有,但是提交一个issue我会添加它:)
关于 ruby , pry : Can I add something to the command `pry example.rb` so pry automatically goes interactive when it finishes executing the script?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/16212147/
我是一名优秀的程序员,十分优秀!