Summary:

* Step over and step return throw errors.

* Resume will not stop again at same breakpoint.

Configuration:

PyDev: 1.3.10

Eclipse: 3.3.1

OS: WinXP Pro

Steps to reproduce:

Add the attached file as a .py source in a jython project.

Add the breakpoint where it says and run the as jython debug. 

Click the button on the frame.

When the debug breaks, clicking either 1) step over or 2) step return
will throw the following:

pydev debugger

Traceback (most recent call last):

File
"C:\eclipse\plugins\org.python.pydev.debug_1.3.10\pysrc\pydevd_frame.py"
, line 117, in trace_dispatch

self.doWaitSuspend(t, frame, event, arg)

File
"C:\eclipse\plugins\org.python.pydev.debug_1.3.10\pysrc\pydevd_frame.py"
, line 26, in doWaitSuspend

self.mainDebugger.doWaitSuspend(*args, **kwargs)

File "C:\eclipse\plugins\org.python.pydev.debug_1.3.10\pysrc\pydevd.py",
line 510, in doWaitSuspend

frame.f_back.f_trace = GetGlobalDebugger().trace_dispatch

AttributeError: 'NoneType' object has no attribute 'f_trace'

Note: Clicking either 3) step into or 4) Resume does not cause the same
issue.

However, when the script resumes, it will not stop on the breakpoint
again next time.

from javax.swing import JFrame, JPanel, JButton, JLabel
from java.awt import BorderLayout


class Jyframe(JFrame):
    def __init__(self):
        JFrame.__init__(self)
        self.setLayout(BorderLayout())
        self.label = JLabel()
        cp = self.getContentPane()
        cp.add(JButton('click', actionPerformed=self.shout))
        cp.add(self.label, BorderLayout.SOUTH)
        self.pack()
        self.setLocationRelativeTo(None)
        self.show()
        
    def shout(self, event):
        self.label.setText('ouch !')                    # add a breakpoint here
        self.pack()
        
        
Jyframe()
-------------------------------------------------------------------------
Check out the new SourceForge.net Marketplace.
It's the best place to buy or sell services for
just about anything Open Source.
http://ad.doubleclick.net/clk;164216239;13503038;w?http://sf.net/marketplace
_______________________________________________
Pydev-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/pydev-users

Reply via email to