BdbQuit raised when debugging Python with pdb

前端 未结 5 1916
南笙
南笙 2020-12-14 00:22

Recently when adding the pdb debugger to my Python 2.7.10 code, I get this message:

Traceback (most recent call last):
  File "/Users/isaach         


        
5条回答
  •  抹茶落季
    2020-12-14 00:25

    Apart from Eirik Fuller answer I would like to add that you can't be using pdb in something thats running in a different process. For debugging you can check this answer: https://stackoverflow.com/a/23654936/7806805 but it seems very hackish or you can make your program run in a single thread. Consult the documentation: https://docs.python.org/3/library/concurrent.futures.html. For multiprocessing issues you might even want to go through https://www.reddit.com/r/learnpython/comments/46x9sm/why_is_pdbset_trace_crashing_whenever_it_is_in_an/

    Anyways your question lacks much needed context. Please add on to your question.

提交回复
热议问题