对于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的小写
Sign in to make a reply
郭子淳gzc
对于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的小写