Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > Python > Debugging multithreaded program using Eclipse/Pydev

Reply
Thread Tools

Debugging multithreaded program using Eclipse/Pydev

 
 
John Henry
Guest
Posts: n/a
 
      04-06-2007
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,

 
Reply With Quote
 
 
 
 
Michael Bentley
Guest
Posts: n/a
 
      04-06-2007

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

 
Reply With Quote
 
 
 
 
John Henry
Guest
Posts: n/a
 
      04-06-2007
On Apr 6, 1:33 pm, Michael Bentley <(E-Mail Removed)> wrote:
> 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,

 
Reply With Quote
 
Ritesh Raj Sarraf
Guest
Posts: n/a
 
      04-07-2007
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"

 
Reply With Quote
 
Heikki Toivonen
Guest
Posts: n/a
 
      04-07-2007
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
 
Reply With Quote
 
John Henry
Guest
Posts: n/a
 
      04-09-2007
On Apr 7, 3:23 pm, Heikki Toivonen <(E-Mail Removed)> wrote:
> 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.

 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Memory consistency error in multithreaded program? Knute Johnson Java 4 01-30-2007 01:56 AM
How can 'java' launch a multithreaded program? Paul J. Lucas Java 7 09-14-2005 12:09 AM
multithreaded c++ program gives segmentation fault coredump nrhayyal C++ 2 06-27-2005 02:22 PM
Stepping through a multithreaded program Fernando Rodríguez Python 0 09-04-2004 03:02 PM
Debugging multithreaded scrips Elbert Lev Python 1 07-05-2004 05:32 PM



Advertisments