I have IPython(0.13.1) and ipdb(0.7) installed, I inserted the line import ipdb;ipdb.set_trace() in my script and ran python my_
IPython(0.13.1)
ipdb(0.7)
import ipdb;ipdb.set_trace()
python my_
As of 2019-11 few things changes so here is what should fix it:
pip install --upgrade ipdb gnureadline ptpython # Handly to enable ipdb on pytest exceptions export PYTEST_ADDOPTS='--pdb --pdbcls=IPython.terminal.debugger:Pdb'