我怎样才能告诉byebug
将历史记录记录到/tmp/.byebug_history
而不是默认位置。
我尝试查看再见错误自述文件,但没有找到答案
Byebug 在您的主目录和当前目录中查找.byebugrc
文件。您可以在其中放置类似set <name> <value>
的行。可能的设置记录在 https://edgeguides.rubyonrails.org/debugging_rails_applications.html#debugging-with-the-byebug-gem-settings 或者您可以在 Byebug 中运行help set
以获取文档。 所需的设置是histfile
。
因此,请尝试在主目录中使用以下内容创建.byebugrc
:
set histfile /tmp/.byebug_history