Discuss / Python / windows系统如何进入PDB调试

windows系统如何进入PDB调试

Topic source

郭子淳gzc

#1 Created at ... [Delete] [Delete and Lock User]

对于windows系统,先通过cmd进入含有py文件(如 test.py)的文件夹 如:D:\Documents> 之后D:\Documents>python -m pdb test.py就可以进入pdb调试

对于 启动Python解释器用-O参数来关闭assert则是python -O err.py,其中-O是o的小写,而不是数字0

另外 (pdb) l l是L的小写


  • 1

Reply