Would you pls tell me a tool to step debug python program?

Franz Steinhaeusler franz.steinhaeusler at gmx.at
Mon Sep 12 11:58:02 CEST 2005


On 12 Sep 2005 00:12:29 -0700, "Johnny Lee" <johnnyandfiona at hotmail.com>
wrote:

>Hi,
>   I've met a problem to understand the code at hand. And I wonder
>whether there is any useful tools to provide me a way of step debug?
>Just like the F10 in VC...
>
>Thanks for your help.
>

What about the "new" winpdb debugger.
It looks really nice.

http://sourceforge.net/projects/winpdb/
http://www.digitalpeers.com/pythondebugger/

create a shortcut like:
C:\Python24\python.exe C:\Python24\Lib\site-packages\winpdb.py -t

the -t switch is important, otherwise it starts in an
encrypted mode".

I have patched winpdb.py (about Line420):

AC_CHAR = "\t"
AC_EXIT = "Alt-X"
AC_BREAK = "F4"
AC_GO = "F5"
AC_NEXT = "F10"
AC_STEP = "F11"
AC_GOTO = "Ctrl+F10"
AC_TOOGLE = "F9"
AC_RETURN = "Shift+F11"

to accomodate the shortcuts to VC Debugger.


-- 
Franz Steinhaeusler



More information about the Python-list mailing list