Is it possible to automatically break into the debugger when a exception is thrown?

前端 未结 6 663
栀梦
栀梦 2021-02-07 06:00

If ones catches an exception outside of the function it is originally thrown, ones loses access to the local stack. As a result one cannot inspect the values of the variables th

6条回答
  •  佛祖请我去吃肉
    2021-02-07 06:18

    I know this is old and an answer has already been accepted, but I found this useful (for IPython): start IPython with the --pdb option

    ipython --pdb 
    

提交回复
热议问题