473,581 Members | 2,783 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Python Debugger / IDE ??

Is there any editor or IDE in Python (either Windows or Linux) which
has very good debugging facilites like MS VisualStudio has or something
like that.

I like SPE but couldn't easily use winPDP. I need tips to debug my code
easily.

Every help is greatly appreciated.

Thanks

Mar 14 '06 #1
20 4187

krypto.wiz...@g mail.com wrote:
Is there any editor or IDE in Python (either Windows or Linux) which
has very good debugging facilites like MS VisualStudio has or something
like that.

I like SPE but couldn't easily use winPDP. I need tips to debug my code
easily.

Every help is greatly appreciated.

Thanks


I've always been happy with the debugger in PythonWin. You can even
use:

from pywin.debugger import set_trace;set_t race()

to bring up the debugger directly from a script that wasn't originally
run in the ide.

Mar 14 '06 #2
kr***********@g mail.com:
Is there any editor or IDE in Python (either Windows or Linux) which
has very good debugging facilites like MS VisualStudio has or something
like that.


Here's a recent thread about IDEs:
http://groups.google.nl/group/comp.l...9604e225252ad4

--
René Pijlman
Mar 14 '06 #3
>Is there any editor or IDE in Python (either Windows or Linux) which
has very good debugging facilites like MS VisualStudio has or something
like that.


I've been using Eclipse with PyDev and am very happy with it.

Mar 14 '06 #4
kr***********@g mail.com wrote:
Is there any editor or IDE in Python (either Windows or Linux) which
has very good debugging facilites like MS VisualStudio has or something
like that.

I like SPE but couldn't easily use winPDP. I need tips to debug my code
easily.

Every help is greatly appreciated.

Thanks

If you don't mind spending (not so much) money, ActiveState's Komodo
is a nice debugger. With it you can even debug a Python program on
a remote machine over a network connection (ideal for GUI problems).

--Scott David Daniels
sc***********@a cm.org
Mar 14 '06 #5
kr***********@g mail.com wrote:
Is there any editor or IDE in Python (either Windows or Linux) which
has very good debugging facilites like MS VisualStudio has or something
like that.

I like SPE but couldn't easily use winPDP. I need tips to debug my code
easily.


pythonic "debugging" in three steps:

1/ unit tests
2/ a bunch of print statements
3/ the interactive python shell

All this relying on well-decoupled, modular code.

FWIW, I've almost never used a debugger with Python.

HTH
--
bruno desthuilliers
python -c "print '@'.join(['.'.join([w[::-1] for w in p.split('.')]) for
p in 'o****@xiludom. gro'.split('@')])"
Mar 14 '06 #6
My code has got big and it is an iterative program. I use print
statements but I thought I could get something handy it would be useful
to me.

thanks

Mar 14 '06 #7
kr***********@g mail.com wrote:
Is there any editor or IDE in Python (either Windows or Linux) which
has very good debugging facilites like MS VisualStudio has or something
like that.

I like SPE but couldn't easily use winPDP. I need tips to debug my code
easily.

Every help is greatly appreciated.

Thanks

I've found that using logging works well for me. I put statements in
my program that log information, trace, intermediate results, ..., and
wrap them in trace/debug if statements. Higher values of debug get more
"stuff" logged. Then I leave everything in the program. When something
goes wrong, run it with debug level and I can figure out what is
happening. This is especially good when problem pops up 2 years from
now. I just have client run with debug=4 and I look at the logfile. If
you get in a habit of writing ALL your software this way, you find that
it is quite powerful and easy. I haven't found the overhead of all the
if statements to be anything to worry about. You can use the standard
library logging module (I wrote my own before it was available and I've
never changed to the one in the standard library).

-Larry Bates
Mar 14 '06 #8
Em Ter, 2006-03-14 Ã*s 09:44 -0800, da********@yaho o.com escreveu:
Is there any editor or IDE in Python (either Windows or Linux) which
has very good debugging facilites like MS VisualStudio has or something
like that.


I've been using Eclipse with PyDev and am very happy with it.


I second that. It's the best Python IDE I've ever used. But you won't
get too far with less than 512 MiB of RAM...

--
"Quem excele em empregar a força militar subjulga os exércitos dos
outros povos sem travar batalha, toma cidades fortificadas dos outros
povos sem as atacar e destrói os estados dos outros povos sem lutas
prolongadas. Deve lutar sob o Céu com o propósito primordial da
'preservação' . Desse modo suas armas não se embotarão, e os ganhos
poderão ser preservados. Essa é a estratégia para planejar ofensivas."

-- Sun Tzu, em "A arte da guerra"

Mar 14 '06 #9
ol*****@verizon .net wrote:
I've always been happy with the debugger in PythonWin. You can even
use:

from pywin.debugger import set_trace;set_t race()

to bring up the debugger directly from a script that wasn't originally
run in the ide.

I use that one also.
There is also Boa (http://boa-constructor.sourceforge.net/), available
both in Linux and Windows, and with the avantage of having a separate
process for the debugging unit, which is great when you have to explore
some unsane scripts.
Regards
jm
Mar 15 '06 #10

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

30
4501
by: David Mertz | last post by:
Pythonistas, My loyal fans :-) will remember that I did a Python IDE roundup for _Charming Python_ a couple years back. Now I have another such roundup lined up... not the very next article, but it's there on the list. In the intervening years, I've hardly touched anything one might call an IDE. I've looked at screenshots from time to...
4
3173
by: Glenn Reed | last post by:
This is just a general comment after trying my hand at some serious python programming for the first time. Have played with it for some time but this is the first serious thing I've done with it. (By serious I mean 650 lines of python code written for a client). The version of Python is the ActiveState version for Windows which included...
34
3629
by: Erik Johnson | last post by:
This is somewhat a NEWBIE question... My company maintains a small RDBS driven website. We currently generate HTML using PHP. I've hacked a bit in Python, and generally think it is a rather cool language. I've done Perl and like it, there are a few features of PHP I like but overall am not too excited about it. I have found PHP's...
4
2602
by: Chris P. | last post by:
I've been having a problem with PythonWin that seemed to start completely spontaneously and I don't even know where to START to find the answer. The only thing I can think of that marks the point between "PythonWin works fine" and "PythonWin hardly every works fine" was that I changed the size of my Virtual Paging file, noticing that it was...
6
2036
by: Tran Tuan Anh | last post by:
Hi all, I am new to Python and desperated to look for a good Python debugger. I mean a debugger with source coding tracking. For C/C++, emacs and gud offers execellent development env. The source code tracking is extremely useful for recursive functions. I have spent time Googling but not found anything near. Thanks!
0
2264
by: peter | last post by:
Hello all, I would like to debug my python libraries, written in c++, with GDB (gnu debugger) I'm using the mingw compiler in a windows environment. As development environment I use eclipse with the CDT plugin. This plugin also has a nice GUI frontend for the GDB. I've already tried several setups, no setup seemed to work.
17
1623
by: hanumizzle | last post by:
I have used Perl for a long time, but I am something of an experimental person and mean to try something new. Most of my 'work' with Vector Linux entails the use of Perl (a bit of a misnomer as it is not now a paid position -- I am not yet even out of K-12), and there a lot of things I love about it. I can look past a number of misfeatures in...
40
2151
by: kimiraikkonen | last post by:
Hi, For experienced with Pyhton users, which developing software and enviroment would you suggest for Pyhton programming? Compiler+Editor +Debugger. Also what are your suggestions for beginners of Pyhton programming? Thank you.
12
1735
by: WaterWalk | last post by:
Hello. I wonder what's the effective way of figuring out how a piece of python code works. With C I often find it very useful to be able to run the code in step mode and set breakpoints in a debugger so I can watch how the it executes, how the data change and how the code jumps from one function to another. But with Python, the debugger is a...
0
7876
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main...
0
7804
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 effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language...
0
8310
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that...
1
7910
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 Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For...
0
8180
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 protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the...
0
6563
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then...
1
5681
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 presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes...
0
3832
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
2307
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system

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.