एनबी: यह केवल अजगर के साथ 2.
क्रेडिट परीक्षण किया जाता है
.pdbrc
# NB: This file only works with single-line statements
import os
execfile(os.path.expanduser("~/.pdbrc.py"))
: https://wiki.python.org/moin/PdbRcIdea
pdb ReadLine का उपयोग करता है तो हम इतिहास को बचाने के लिए ReadLine निर्देश दे सकते हैं .pdbrc.py
def _pdbrc_init():
# Save history across sessions
import readline
histfile = ".pdb-pyhist"
try:
readline.read_history_file(histfile)
except IOError:
pass
import atexit
atexit.register(readline.write_history_file, histfile)
readline.set_history_length(500)
_pdbrc_init()
del _pdbrc_init
कौन सा मंच आप प्रयोग करते हैं? – Keith
उबंटू 11.04 पायथन 2.7.1+ (आर 271: 86832, अप्रैल 11 2011, 18:13:53) [जीसीसी 4.5.2] linux2 – vkontori
पर क्या आपने इस समस्या को हल किया? मैं भी इसी तरह की सुविधा लेना चाहता हूं। – Phani