Simpler way to put PDB breakpoints in Python code?

后端 未结 14 2231
不知归路
不知归路 2020-11-30 18:21

Just a convenience question. I\'ve been a bit spoiled with debuggers in IDEs like Visual Studio and XCode. I find it a bit clumsy to have to type import pdb; pdb.set_t

14条回答
  •  孤城傲影
    2020-11-30 19:02

    You could use an IDE which supports python debugging, or you can check out the excellent Winpdb tool. Which works on any platform and provides graphical debugging facilities to your python script.

    http://winpdb.org/

提交回复
热议问题