how to disable pdb.set_trace() without stopping python program and edit the code -


i suspect have issue in 1 of loops, setup break points pdb.set_trace()

import pdb in range(100):     print("a")     pdb.set_trace()     print("b") 

after check variable in loop few times, decide continue programming without further breaks. try break number b command, no breaks listed. guess line of code don't setup break point. how ride of "break points" without stopping program , change code?

to knowledge, not bypass set_trace, neutralize it, once debugger stopped, type:

pdb.set_trace = lambda: 1 

then continue, wont break again.


Comments

Popular posts from this blog

angular - Ionic slides - dynamically add slides before and after -

minify - Minimizing css files -

Add a dynamic header in angular 2 http provider -