pdb which handles threads

Andy Valencia vandys at vsta.org
Mon Nov 19 20:26:25 EST 2018


I had yet another program where I accidentally had more than one
thread enter pdb at once, leaving me with the "pdb's battling for
the keyboard" syndrome.  So I extended pdb to recognize and handle
threads.  I added:

"jobs"

List threads, with one current one being the only one involved
with the keyboard.  All others wait politely.

"fg <jobnum>"

To switch to a different thread.

I welcome comments (it's for Python 2), under:

http://sources.vsta.org/

Regards,
Andy Valencia



More information about the Python-list mailing list