Warning: file_get_contents(/data/phpspider/zhask/data//catemap/2/ruby-on-rails/62.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Ruby on rails 如何更改byebug历史位置_Ruby On Rails_Ruby_Debugging_Byebug - Fatal编程技术网

Ruby on rails 如何更改byebug历史位置

Ruby on rails 如何更改byebug历史位置,ruby-on-rails,ruby,debugging,byebug,Ruby On Rails,Ruby,Debugging,Byebug,我如何告诉byebug将历史记录到/tmp/。byebug\u history 而不是它的默认位置 我试着在Byebug自述中查找,但没有找到答案。Byebug在您的主目录和当前目录中查找。byebugrc文件。您可以在其中放入set之类的行。可能的设置记录在中,或者您可以在Byebug中运行帮助设置以获取文档。您需要的设置是histfile 因此,请尝试使用以下内容在主目录中创建.byebugrc: set histfile /tmp/.byebug_history 有人知道。?

我如何告诉
byebug
将历史记录到
/tmp/。byebug\u history
而不是它的默认位置


我试着在Byebug自述中查找,但没有找到答案。Byebug在您的主目录和当前目录中查找
。byebugrc
文件。您可以在其中放入
set
之类的行。可能的设置记录在中,或者您可以在Byebug中运行帮助设置以获取文档。您需要的设置是
histfile

因此,请尝试使用以下内容在主目录中创建
.byebugrc

set histfile /tmp/.byebug_history

有人知道。?