Get IPython tab completion for ipdb

前端 未结 5 1443
名媛妹妹
名媛妹妹 2020-12-31 00:28

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_

5条回答
  •  囚心锁ツ
    2020-12-31 00:55

    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'
    

提交回复
热议问题