473,320 Members | 1,884 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,320 software developers and data experts.

Debugging multithreaded program using Eclipse/Pydev

I am back against the wall trying to migrate my multithreaded
application from Python 2.3 to 2.5. The part of the code that's
failing has to do with queues (2.3 queues and 2.5 queues are not the
same). Since WingIDE doesn't support multithread debugging (they've
been saying that one day they might support that - and that was 2003),
I am starting to look for alternatives.
>From what I can gather, it appears the only *real* option I have is to
debug under Eclipse/Pydev. I did a google search of this newsgroup
and didn't turn up too many hits. Before I invest the time to learn
Eclipse/Pydev, I like to hear from somebody that have gone this path.
Have you been successful in using Eclipse/Pydev to debug multi-
threaded Python applications? Is so, what was the learning curve like
to you?

Thanks,

Apr 6 '07 #1
5 6358

On Apr 6, 2007, at 2:32 PM, John Henry wrote:
I am back against the wall trying to migrate my multithreaded
application from Python 2.3 to 2.5. The part of the code that's
failing has to do with queues (2.3 queues and 2.5 queues are not the
same). Since WingIDE doesn't support multithread debugging (they've
been saying that one day they might support that - and that was 2003),
I am starting to look for alternatives.
The alpha release of Wing IDE (3.0.0-a1) does in fact, support
multithread debugging. It is an alpha release but so far, I'm quite
satisfied with it.

hth,
Michael

Apr 6 '07 #2
On Apr 6, 1:33 pm, Michael Bentley <mich...@jedimindworks.comwrote:
On Apr 6, 2007, at 2:32 PM, John Henry wrote:
I am back against the wall trying to migrate my multithreaded
application from Python 2.3 to 2.5. The part of the code that's
failing has to do with queues (2.3 queues and 2.5 queues are not the
same). Since WingIDE doesn't support multithread debugging (they've
been saying that one day they might support that - and that was 2003),
I am starting to look for alternatives.

The alpha release of Wing IDE (3.0.0-a1) does in fact, support
multithread debugging. It is an alpha release but so far, I'm quite
satisfied with it.

hth,
Michael

That's nice to know. May be I can get on their alpha list.

Thanks,

Apr 6 '07 #3
John Henry wrote:
>>From what I can gather, it appears the only real option I have is to
debug under Eclipse/Pydev. *I did a google search of this newsgroup
and didn't turn up too many hits. *Before I invest the time to learn
Eclipse/Pydev, I like to hear from somebody that have gone this path.
Have you been successful in using Eclipse/Pydev to debug multi-
threaded Python applications? *Is so, what was the learning curve like
to you?
I use pydev extensively for all my Python related work. And I really love
it.

The good part about Eclipse/PyDev is that (if you are an Eclipse user)
you'll have to learn only a single IDE for all your programming works in
most of the languages. The interface, the shortcut keys to step, all are
the same across all languages that you use in Eclipse.

As for PyDev, it works very good with Eclipse.
Be it code-completion or thread debugging, all is supported. For
multithreaded applications, in PyDev, you'll see all the threads listed.
Then you can use each thread and proceed with debugging the code.

Learning Eclipse might take some time but that's worth it.

HTH,
Ritesh
--
Ritesh Raj Sarraf
RESEARCHUT - http://www.researchut.com
"Necessity is the mother of invention."
"Stealing logic from one person is plagiarism, stealing from many is
research."
"The great are those who achieve the impossible, the petty are those who
cannot - rrs"

Apr 7 '07 #4
John Henry wrote:
>>From what I can gather, it appears the only *real* option I have is to
debug under Eclipse/Pydev. I did a google search of this newsgroup
and didn't turn up too many hits. Before I invest the time to learn
Eclipse/Pydev, I like to hear from somebody that have gone this path.
Have you been successful in using Eclipse/Pydev to debug multi-
threaded Python applications? Is so, what was the learning curve like
to you?
ActiveState Komodo can also do multithreaded debugging.

And if all else fails, you can insert:

import pdb
pdb.set_trace()

in your code and that way you will break on any thread.

Currently I am using pydev myself, having gone through WingIDE and Komodo.

--
Heikki Toivonen
Apr 7 '07 #5
On Apr 7, 3:23 pm, Heikki Toivonen <hei...@osafoundation.orgwrote:
John Henry wrote:
>From what I can gather, it appears the only *real* option I have is to
debug under Eclipse/Pydev. I did a google search of this newsgroup
and didn't turn up too many hits. Before I invest the time to learn
Eclipse/Pydev, I like to hear from somebody that have gone this path.
Have you been successful in using Eclipse/Pydev to debug multi-
threaded Python applications? Is so, what was the learning curve like
to you?

ActiveState Komodo can also do multithreaded debugging.

And if all else fails, you can insert:

import pdb
pdb.set_trace()

in your code and that way you will break on any thread.

Currently I am using pydev myself, having gone through WingIDE and Komodo.

--
Heikki Toivonen

I ran the alpha version of Wing. So far, it appears to do a fine job
in debugging multi-threaded applications.

And yes, I fixed my bug within 5 minutes.

Apr 9 '07 #6

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

Similar topics

1
by: Elbert Lev | last post by:
I started with Python two weeks ago and already saved some time and efforts while writing 2 programs: 1. database extraction and backup tool, which runs once a month and creates a snapshot of...
3
by: angel | last post by:
hi I use win2000 + eclipse + pydev to developing and python program.On my machine, python.exe perhaps spend 10 second on starting. Now, when I use eclipse+pydev to debug, eclipse tell me a error...
2
by: Grzegorz | last post by:
Hello, I'm using eclipse with pydev plugin, I'm working on a program using wxpython . When I'm executing that application standard error output does not show in eclipse console window - wxpython...
1
by: ravinder | last post by:
I wanted to develop a multithreaded program using OO concepts on windows platform. Problem: I have to simulate two layers(similar to TCP/IP stack layers), and the layer functionality is of finite...
0
by: yaru22 | last post by:
Hi. I'd like to know how to debug in eclipse+pydev. In the menu, "Pydev Debug", there's Start Debug Server option, but I don't know how to use it. Few questions I have about debugging are:...
10
by: Flavio | last post by:
Hi, I try to write here because maybe my problem is a common one. I have a rather complicated multithreaded program, which uses the POSIX pthread standard. A master routine calls a series of...
9
by: king kikapu | last post by:
Hi, this is actually a question to those of us who use Eclipse and Pydev as their main Python developing environment. As i use Eclipse (3.3 Europa) only for Python and i have nothing to do with...
4
by: king kikapu | last post by:
Hi, i am using Eclipse (Platform Runtime binary) with PyDev and i was wondering if someone can help me with this: 1. I set breakpoints to a .py file and i have told Eclipse to open the Debug...
3
by: Ethan Furman | last post by:
Hey all. My thanks to all who have responded so far with my other questions. It is much appreciated. Some background on what I'm doing (a good explanation can be found at...
0
by: DolphinDB | last post by:
Tired of spending countless mintues downsampling your data? Look no further! In this article, you’ll learn how to efficiently downsample 6.48 billion high-frequency records to 61 million...
0
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
1
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: Vimpel783 | last post by:
Hello! Guys, I found this code on the Internet, but I need to modify it a little. It works well, the problem is this: Data is sent from only one cell, in this case B5, but it is necessary that data...
0
by: jfyes | last post by:
As a hardware engineer, after seeing that CEIWEI recently released a new tool for Modbus RTU Over TCP/UDP filtering and monitoring, I actively went to its official website to take a look. It turned...
0
by: ArrayDB | last post by:
The error message I've encountered is; ERROR:root:Error generating model response: exception: access violation writing 0x0000000000005140, which seems to be indicative of an access violation...
0
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
0
by: Defcon1945 | last post by:
I'm trying to learn Python using Pycharm but import shutil doesn't work
0
by: af34tf | last post by:
Hi Guys, I have a domain whose name is BytesLimited.com, and I want to sell it. Does anyone know about platforms that allow me to list my domain in auction for free. Thank you

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.