i debug python script of ipdb
debugger putting following line source code:
import ipdb; ipdb.set_trace()
then when run script, ipdb
starts. need plot numpy
arrays in interactive graph using matplotlib
plotting library. use following commands make interactive plotting possible inside ipdb
:
import matplotlib.pyplot plt plt.ion()
my question whether possible run these 2 commands automatically when ipdb
starts.
i looking @ how fix in ipdb (loading user configuration , init scripts). there solution discovered reading pdb documentation.
if place .pdbrc file in home or @ root of project directory, script executed in pdb shell (which works ipdb).
here issue working on: https://github.com/gotcha/ipdb/issues/61
Comments
Post a Comment