jonathanslenders / ptpdb

prompt_toolkit/ptpython pdb frontend
183 stars 20 forks source link

How to quit the debugger when in while loop #19

Open arshbot opened 5 years ago

arshbot commented 5 years ago

How can I quit from inside a while loop? Below is an example of a script I've had trouble getting out of.

from ptpdb import set_trace

while True:
    set_trace()
    print('doing something')