在PDB中切换线程

时间:2017-08-17 17:46:17

标签: python multithreading pdb

PDB新手。在Emacs中运行PDB。 Python 2.7.12。

以下说明:How do I display thread/process Id in Python PDB?

(pdb) import os,threading; os.getpid(), threading.current_thread().ident

我跑了:

 (Pdb) p threading._active
 {140313408587520: <_MainThread(MainThread, started 140313408587520)>,
 140313368295168: <Thread(Thread-2, started 140313368295168)>,
 140313359574784: <Thread(Thread-1, started 140313359574784)>}

现在,我如何在线程之间切换(在PDB中)?

0 个答案:

没有答案