Reputation: 5364
I have a python function that I'm calling from inside an iPython session.
In a very specific situation, in which a conditional in a certain line comes out as True, the script consistently drops into a pdb debug mode.
There is no trace or any other indication of a problem with the code, and as soon as I type c
to continue, the code continues perfectly well.
The script doesn't include any import pdb
not to mention a set_trace()
...
Any ideas what could account for this?
Upvotes: 0
Views: 150
Reputation: 5364
Seems like there was a import pdb; pdb.set_trace()
line in the code after all, which I missed due to source control issues.
Upvotes: 0
Reputation: 318638
Depending on your ipython config it automatically goes into PDB if an exception is raised.
Upvotes: 1