473,398 Members | 2,343 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,398 software developers and data experts.

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

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
5 1585
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
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
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
>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
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 thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

20
by: Thomas Heller | last post by:
I'm currently working on a new version of py2exe, which will require Python 2.3 and later, because it uses the zipimport mechanism. Since py2exe is a distutils extension, and since C compilers...
9
by: TPJ | last post by:
First I have to admit that my English isn't good enough. I'm still studying and sometimes I just can't express what I want to express. A few weeks ago I've written 'Python Builder' - a bash...
3
by: John | last post by:
Hi, I want to make it so my customers have to enter a license code to activate my software. Without this code, the software will only run for a period of time (7-30 days). Are there any...
0
by: Adam Tomjack | last post by:
I'm trying to embed Python 2.3.5 into a C++ application on Windows XP. When I build my app with debug symbols and link to a debug build of Python, then my program seems to crash most (but not all)...
15
by: baumann | last post by:
Hi all, I have one simple program: #define __EXTENSIONS__ #include <stdio.h> #include <string.h> int main() {
3
by: raulcobo | last post by:
Hello to all: I have a program made in VB and Access. I have a very rare problem and I don´t know how to solving it. When I execute it, the program fails (does not leave any message error. I...
1
by: toton | last post by:
Hi, Is there any tool for template debugging, during compilation process ? Just like gdb or visual studio debugger do it during program execution, a step by step debug for the program, I am...
2
by: Bo | last post by:
Hello All, I am experimenting IronPython in Visual Studio. Here is what I have, what I did and what I want 1. I have installed Visual Studio SDK 4.0 according to this blog...
5
by: =?Utf-8?B?U0M=?= | last post by:
Hi everyone, i'm workin with vb.net 2003 and i using the debug step into, but when i call a form within another the debugger doesn't go to the form that i call, how do i solve this, without putting...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.