The following forum message was posted by bluelou at 
http://sourceforge.net/projects/pydev/forums/forum/293649/topic/3837914:

Thanks, Fabio. Here's my test Jython code, in its entirety:

[code]
1   import pydevd
2   pydevd.settrace()

4   print 'Breakpoint 1'

6   pydevd.settrace()

8   print 'Breakpoint 2'
9   print 'Line 3'
10 print 'Line 4'
11 print 'Line 5'
[/code]

If I run this in Eclipse (using Run as Jython), it appears to stop at line 80
of a module named weakref, and described as, "Weak reference support for
Python.":

[code]<snip>
80    def __setitem__(self, key, value):    <== Stops here???
81          self.data[key] = KeyedRef(value, self._remove, key)
</snip>[/code]

If I then click Continue, the second breakpoint is correctly taken and I can
Step (F6) through the remaining Jython statements:

[code]8   print 'Breakpoint 2'   <=== Stops here[/code]

Pretty simple. I just don't understand why it appears to stop in weakref at
all, instead of at the first breakpoint, following the first settrace()
statement.



------------------------------------------------------------------------------
This SF.net Dev2Dev email is sponsored by:

Show off your parallel programming skills.
Enter the Intel(R) Threading Challenge 2010.
http://p.sf.net/sfu/intel-thread-sfd
_______________________________________________
Pydev-users mailing list
Pydev-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/pydev-users

Reply via email to