开发者

How to launch winpdb from a Python script?

When I have to deal with bugs in Python code, I often insert breakpoints so during execution I'm being dropped into the debuger when a breakpoint is reached. I've been mostly using pdb (command line) and pudb (ncurses interface).

Is it possible to launch winpdb instead in such situation? What's the breakpoint co开发者_StackOverflowde I shall include in my python script so winpdb would get started?

Edit: I'm using a simple text editor (vim) for writing code. Please do not suggest me to use an IDE instead, which has winpdb integrated or has its own GUI debuger that is similar to winpdb.


Winpdb is normally used so that you run the script with winpdb:

 winpdb myscript.py

If you want to start it from "inside" python instead, the documentation on how to do that is here: http://winpdb.org/docs/embedded-debugging/

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜