[prev in list] [next in list] [prev in thread] [next in thread] 

List:       pykde
Subject:    Re: [PyKDE] Debugging Threads in Eric
From:       Andrew Bushnell <awb () fluent ! com>
Date:       2004-06-30 23:02:33
Message-ID: 40E34689.7040105 () fluent ! com
[Download RAW message or body]

the thread implementation in Eric currently auto traces all threads. 
What you could do, though is:

launch eric using the non-threaded client, this will only debug your 
main thread.

using the latest eric, you could make use of the new breakpoint command 
so in the thread you want to single set, you could put the following code:

import sys
if hasattr(sys, "breakpoint"):
     sys.breakpoint()

when the sys.breakpoint triggers, you are in the debugger and can single 
step that thread..

Detlev can correct me if I misspoke at all.

Hope this helps.

Michael Andrews wrote:

> Is it possible to control which python thread continues/single steps
> etc. in the debugger?  We're trying to debug a two simultaneous threads,
> and would like to keep one thread stopped, while we single step through
> the other for a while.
> 
> Thanks in advance,

-- 
************************************
Andrew Bushnell
Senior Development Engineer
Fluent Inc.
10 Cavendish Court
Centerra Resource Park
Lebanon, NH  03766
awb@fluent.com
Phone: 603-643-2600, ext. 757
Fax: 603-643-1721
www.fluent.com
************************************

_______________________________________________
PyKDE mailing list    PyKDE@mats.imk.fraunhofer.de
http://mats.imk.fraunhofer.de/mailman/listinfo/pykde
[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic