osdir.com


[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

pdb which handles threads


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