PDB的克隆,快速,具有远程调试和附加功能。
pdb-clone的Python项目详细描述
功能
- Implement the most recent Python 3 features of pdb, as defined in the Python 3 pdb documentation. The pdb command line interface remains unchanged except for the new ^{tt1}$ and ^{tt2}$ pdb commands.
- Improve significantly pdb performance. With breakpoints, pdb-clone runs just below the speed of the interpreter while pdb runs 10 to 100 times slower than the interpreter, see Performances.
- Extend pdb with remote debugging. A remote debugging session may be started when the program stops at a ^{tt3}$ hard-coded breakpoint, or at any time and multiple times by attaching to the process main thread. See RemoteDebugging
- Fix pdb long standing bugs entered in the Python issue tracker, see the News.
- Add a bdb comprehensive test suite (more than 70 tests) and run both pdb and bdb test suites.
pdb clone在所有受支持的python版本上运行相同的源代码,这些版本是:
- Python 3: from version 3.2 onward.
- Python 2: version 2.7.
向issue tracker报告错误。
用法
调用pdb clone作为脚本来调试其他脚本。例如:
$ pdb-clone myscript.py
或者使用pdb documentation中描述的运行pdb的不同方法之一并替换:
import pdb
使用:
from pdb_clone import pdb