[英]Exiting rails console with 'n'
I noticed a weird thing. 我注意到了一件奇怪的事。 I accidentally typed: 我不小心输入了:
@a = n
which led to exit of rails console. 导致退出Rails控制台。
On further experimenting I found out even if I just do (in console) 在进一步的实验中,我发现即使我只是做了(在控制台中)
n
The console exits. 控制台退出。 If I try any other character, I get error as expected. 如果我尝试其他任何字符,则会出现预期的错误。
a
# => NameError: undefined local variable or method `a' for main:Object
I was not able to find any documentaion that stated n
is used to exit rails console
. 我找不到任何说明n
用于退出rails console
文档。 Is this normal? 这正常吗? Or my console is breaking cause of some thing that I dont understand at all? 还是我的控制台破坏了我根本不了解的某些东西?
Versions: 版本:
ruby 1.8.7 (2012-06-29 patchlevel 370) [x86_64-linux]
Rails 3.2.13
This is a known issue in debugger. 这是调试器中的一个已知问题。 Go through here https://github.com/cldwalker/debugger/issues/133 . 在这里浏览https://github.com/cldwalker/debugger/issues/133 。 This is also with pry https://github.com/nixme/pry-debugger/issues/55 . 这也与pry https://github.com/nixme/pry-debugger/issues/55一起使用 。
Well, works as expected (undefined local ...) for me at least. 好吧,至少对我来说符合预期(未定义的本地...)。 Ruby 1.9.3 Ruby 1.9.3
Consider reinstalling ruby, maybe? 考虑重新安装红宝石,也许吗? :) :)
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.