Exiting Python Debugger ipdb

后端 未结 6 1033
被撕碎了的回忆
被撕碎了的回忆 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条回答
  •  误落风尘
    2020-12-25 11:31

    Sloppy but effective way is to set monkey patch ipdb.set_trace = lambda:0, then every subsequent time ipdb.set_trace is hit it will do nothing and return to the calling function. So you won't have to type q any more.

提交回复
热议问题