gpt4 book ai didi

ruby - Pry Error : Cannot find local context. 您是否使用了 `binding.pry`?

转载 作者:数据小太阳 更新时间:2023-10-29 06:30:57 27 4
gpt4 key购买 nike

为什么我会收到此 pry 动错误?

[36] pry(main)> s = "pry"
Error: Cannot find local context. Did you use `binding.pry`?

在此截屏视频中运行良好 http://pryrepl.org/

最佳答案

似乎scn 是pry-nav gem 上的保留命令,发现here ,这可以帮助您逐步完成绑定(bind)。

Pry.commands.alias_command 'c', 'continue'
Pry.commands.alias_command 's', 'step'
Pry.commands.alias_command 'n', 'next'

它们是默认设置的,但可以通过以下方式删除:

Pry::Commands.delete 'c'
Pry::Commands.delete 'n'
Pry::Commands.delete 's'

在您的根目录中名为 .pryrc 的文件中。

关于ruby - Pry Error : Cannot find local context. 您是否使用了 `binding.pry`?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/29305454/

27 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com