在pdb中保存命令历史记录 [英] Save command history in pdb
本文介绍了在pdb中保存命令历史记录的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
是否可以在会话之间保存pdb(python调试器)命令历史记录?另外,我可以指定历史记录长度吗?
Is there a way to save pdb (python debugger) command history across sessions? Also, can I specify history length?
这类似于问题如何使gdb保存命令历史记录?,但是对于pdb而不是gdb。
This is similar to the question How can I make gdb save the command history?, however for pdb instead of gdb.
-非常感谢
推荐答案
我认为您可以使用IPython做到这一点:
I think you can do this with IPython:
http://ipython.org/ipython-doc/stable /interactive/tutorial.html#history
用ipdb替换pdb:
ipdb replacement for pdb:
http://pypi.python.org/pypi/ipdb
这篇关于在pdb中保存命令历史记录的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文