By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
439,957 Members | 1,960 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 439,957 IT Pros & Developers. It's quick & easy.

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

P: n/a
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.

Regards,
Johnny

Sep 12 '05 #1
Share this Question
Share on Google+
5 Replies


P: n/a
On 12 Sep 2005 00:12:29 -0700, "Johnny Lee" <jo************@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
Sep 12 '05 #2

P: n/a
I myself used/use "Komodo" for all my developing, it's the best and
easiest to use graphical IDE for python i've found thus far.
On 12/09/05, Franz Steinhaeusler <fr*****************@gmx.at> wrote:
On 12 Sep 2005 00:12:29 -0700, "Johnny Lee" <jo************@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
--
http://mail.python.org/mailman/listinfo/python-list

Sep 12 '05 #3

P: n/a
SPE ships with a debugger as well: http://pythonide.stani.be It's free
& open source.

Johnny Lee 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.

Regards,
Johnny


Sep 20 '05 #4

P: n/a
>Johnny Lee 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...


Not single stepping, but flow tracing, complete with variables,
parameters and return values. Python Bug Validator.

http://www.softwareverify.com

Stephen
--
Stephen Kellett
Object Media Limited http://www.objmedia.demon.co.uk/software.html
Computer Consultancy, Software Development
Windows C++, Java, Assembler, Performance Analysis, Troubleshooting
Sep 21 '05 #5

P: n/a
Johnny Lee 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.

Regards,
Johnny


The pdb module is a basic starting point for Python's debugging
features, and can be useful for a single attack on a single truculent bug.

Wing IDE has a stepping debugger. It's not the only tool with this
feature, but I've found it very convenient, and use it daily. You can
download a one-month evaluation, as with many similar products.

http://www.wingware.com/

regards
Steve
--
Steve Holden +44 150 684 7255 +1 800 494 3119
Holden Web LLC www.holdenweb.com
PyCon TX 2006 www.pycon.org

Sep 21 '05 #6

This discussion thread is closed

Replies have been disabled for this discussion.