Exiting Python Debugger ipdb

后端 未结 6 1023
被撕碎了的回忆
被撕碎了的回忆 2020-12-25 11:15

I use ipdb fairly often in a way to just jump to a piece of code that is isolated i.e. it is hard to write a real script that uses it. Instead I write a minimal tes

6条回答
  •  旧时难觅i
    2020-12-25 11:20

    I put the following in my .pdbrc

    import os
    
    alias kk os.system('kill -9 %d' % os.getpid())
    

    kk kills the debugger and (the process that trigger the debugger).

提交回复
热议问题