|
View:
New views
4 Messages
—
Rating Filter:
Alert me
|
|
|
[pydev - Users] Interrupt EvaluationRead and respond to this message at: https://sourceforge.net/forum/message.php?msg_id=7529893 By: nikratio Hello, I have a program that hangs at some point. Is there a way to interrupt the evaluation and go into debugging mode to see where it got stuck? Randomly setting breakpoints (or debug messages) to slowly narrow down this point seems like a very uneccessarily inconvenience. ______________________________________________________________________ You are receiving this email because you elected to monitor this forum. To stop monitoring this forum, login to SourceForge.net and visit: https://sourceforge.net/forum/unmonitor.php?forum_id=293649 ------------------------------------------------------------------------------ _______________________________________________ Pydev-users mailing list Pydev-users@... https://lists.sourceforge.net/lists/listinfo/pydev-users |
|
|
[pydev - Users] RE: Interrupt EvaluationRead and respond to this message at: https://sourceforge.net/forum/message.php?msg_id=7530011 By: fabioz You can do it if you start in debug mode and later press the pause button (at the debug view, select the thread you want to pause). Cheers, Fabio ______________________________________________________________________ You are receiving this email because you elected to monitor this forum. To stop monitoring this forum, login to SourceForge.net and visit: https://sourceforge.net/forum/unmonitor.php?forum_id=293649 ------------------------------------------------------------------------------ _______________________________________________ Pydev-users mailing list Pydev-users@... https://lists.sourceforge.net/lists/listinfo/pydev-users |
|
|
[pydev - Users] RE: Interrupt EvaluationRead and respond to this message at: https://sourceforge.net/forum/message.php?msg_id=7533692 By: nikratio I'm afraid this does not seem to work for me. Pressing the pause button (you mean the button labelled 'suspend' between 'resume' and 'terminate', right?) does not seem to have any effect at all. Could you try it with the following testcase? import threading import time lock = threading.RLock() def run1(): print 'Thread 1 acquiring lock...' lock.acquire() print 'Thread 1 holding lock' time.sleep(120) lock.release() print 'Thread 1 released lock' def run2(): time.sleep(1) print 'Thread 2 acquiring lock' lock.acquire() print 'Thread 2 got lock' lock.release() print 'Thread 2 released lock' t1 = threading.Thread(target=run1) t2 = threading.Thread(target=run2) t1.start() t2.start() t1.join() t2.join() Thanks! Nikolaus ______________________________________________________________________ You are receiving this email because you elected to monitor this forum. To stop monitoring this forum, login to SourceForge.net and visit: https://sourceforge.net/forum/unmonitor.php?forum_id=293649 ------------------------------------------------------------------------------ Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day trial. Simplify your report design, integration and deployment - and focus on what you do best, core application coding. Discover what's new with Crystal Reports now. http://p.sf.net/sfu/bobj-july _______________________________________________ Pydev-users mailing list Pydev-users@... https://lists.sourceforge.net/lists/listinfo/pydev-users |
|
|
[pydev - Users] RE: Interrupt EvaluationRead and respond to this message at: https://sourceforge.net/forum/message.php?msg_id=7533695 By: nikratio Seems that sf has eaten the indentation in the run1 and run2 functions... JFTR record, I tested it with correct indentation. ______________________________________________________________________ You are receiving this email because you elected to monitor this forum. To stop monitoring this forum, login to SourceForge.net and visit: https://sourceforge.net/forum/unmonitor.php?forum_id=293649 ------------------------------------------------------------------------------ Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day trial. Simplify your report design, integration and deployment - and focus on what you do best, core application coding. Discover what's new with Crystal Reports now. http://p.sf.net/sfu/bobj-july _______________________________________________ Pydev-users mailing list Pydev-users@... https://lists.sourceforge.net/lists/listinfo/pydev-users |
| Free embeddable forum powered by Nabble | Forum Help |