ASPN ActiveState Programmer Network
ActiveState
/ Home / Perl / PHP / Python / Tcl / XSLT /
/ Safari / My ASPN /
Cookbooks | Documentation | Mailing Lists | Modules | News Feeds | Products | User Groups


Recent Messages
List Archives
About the List
List Leaders
Subscription Options

View Subscriptions
Help

View by Topic
ActiveState
.NET Framework
Open Source
Perl
PHP
Python
Tcl
Web Services
XML & XSLT

View by Category
Database
General
SOAP
System Administration
Tools
User Interfaces
Web Programming
XML Programming


MyASPN >> Mail Archive >> visualpython-discuss
visualpython-discuss
[Visualpython-discuss] Debugging a multi-threaded app with breakpoints
by Michael Murdock other posts by this author
Jul 13 2005 10:33AM messages near this date
view in the new Beta List Site
Re: [Visualpython-discuss] Problems debugging Modules.. | RE: [Visualpython-discuss] Is Visual Python out of beta status?
I am using VisualPython (VP) 1.8.2 Build 2090.

I have written a mult-threaded Python app and I am trying to debug it
with VP. My problem is that breakpoints are ignored. I know that this
problem is not unique to VP - breakpoints seem to be ignored similarly
in the PythonWin IDE.

I derived my class from threading.Thread in a very standard way. I've
seen many scripts that look like my class:

class CMyThread(threading.Thread):

     def __init__(self, anObjectINeed)
          self._stopevent = threading.Event()
          self._sleepperiod = 1.0
          threading.Thread.__init__(self, name='Test')

     def run(self):
     print "I made it!\n"
     while not self._stopevent.isSet():
          print "This is the main activity of this thread\n"
          self._stopevent.wait(self._sleepperiod)


Is there any other way than deriving my class from threading.Thread to
create a few threads in which I can place breakpoints that work with
VP?

Thanks!

Michael.

_______________________________________________
Visualpython-discuss mailing list
Visualpython-discuss@[...].com
To unsubscribe: http://listserv.ActiveState.com/mailman/mysubs

Privacy Policy | Email Opt-out | Feedback | Syndication
© 2004 ActiveState, a division of Sophos All rights reserved