Starting python debugger automatically on error

前端 未结 13 2267
南方客
南方客 2020-11-27 08:44

This is a question I have wondered about for quite some time, yet I have never found a suitable solution. If I run a script and I come across, let\'s say an IndexError, pyth

13条回答
  •  难免孤独
    2020-11-27 09:24

    python -m pdb script.py in python2.7 press continue to start and it will run to the error and break there for debug.

提交回复
热议问题