# http://wiki.python.org/moin/PdbRcIdea # .pdbrc only allows for debugger commands; you cannot insert Python scripts. # To overcome this restriction, this .pdbrc executes pdbrc.py, # which can contain arbitrary Python commands. # If pdbrc.py is missing, you get an error message (which doesn't hurt). import os x = execfile(os.path.expanduser("~/lib/python/pdbrc.py"))