python调试工具pdb和ipdb的使用

1安装 
pip install ipdb 
或: easy_install ipdb 
2 调试使用ipdb 

python -m pdb xxx.py 
python -m ipdb xxx.py 


3 调试命令(键入h查看) 
Documented commands (type help ): 
======================================== 
EOF bt cont enable jump pdef psource run unt 
a c continue exit l pdoc q s until 
alias cl d h list pfile quit step up 
args clear debug help n pinfo r tbreak w 
b commands disable ignore next pinfo2 restart u whatis 
break condition down j p pp return unalias where 



你可能感兴趣的:(python)