4 ms·
I should try ipdb. I've been using pdb (which I usually do using postmortem pdb.pm(), after my program crashes). But try out from IPython import embed; embed()
by kghose 13y ago
I should try ipdb. I've been using pdb (which I usually do using postmortem pdb.pm(), after my program crashes). But try out
from IPython import embed; embed()
instead of pdb.set_trace()
It starts a whole IPython interpreter right there with all variables loaded. I like it because I can do inspection, plotting etc etc.
- mattdeboard 13y agoAh, yeah ipdb has much of the same functionality but not a full-fledged ipython instance, I don't believe.