This Bugzilla instance is a read-only archive of historic NetBeans bug reports. To report a bug in NetBeans please follow the project's instructions for reporting issues.
Product Version: NetBeans IDE Dev (Build 20090116133323) Java: 1.6.0_11; Java HotSpot(TM) Server VM 11.0-b16 System: Windows Vista version 6.0 running on x86; Cp1252; en_US (nb) Userdir: C:\Users\peter\.netbeans\dev-20090116-b645 Debugging and stepping to line 24 in the attached sample Jython Swing sample app, stepping into or over line 24 will end the debugging session. Repro steps: - download, unzip and open the attached sample project - right click on the project and select properties - click on Python and reselect bundled "Jython 2.5b0+' platform - click on Run and select 'AnagramsSwing.py' for Main Module - open AnagramsSwing.py source and set a break point on line 24 - uncheck 'Stop at first line' on Python Debugger option - Debug the project
Created attachment 75915 [details] Jython Swing sample app
This and issue 156386 may be related we will have to wait for evaluation.
good catch but not sure if it's related since the sample Swing app attached to this issue can be run ok. Debugging is ok too until stepping into or over line 24 with the JFrame call stopped the debugging session. Issue 156386 is about the Swing sample app that can not be run at all.
True, that's why we will have to wait for evaluation ;) I just thought that the coincidence of both issues being related to JFrame (see NPE for issue 156386) was worth mentioning.
Yes, agree with you. It's definitely worth mentioning. Thanks. Here's a simple case where the debugging session stops right before the last print statement. import javax.swing as swing frame = swing.JFrame('Hello World Swing') frame.setDefaultCloseOperation(swing.JFrame.EXIT_ON_CLOSE) label = swing.JLabel("Hello World Swing Text!") frame.getContentPane().add(label) frame.pack() frame.setVisible(1) print "another line that will not be reached during debugging session"
Created attachment 75955 [details] show fix
fix starting at build #663
Product Version: NetBeans IDE Dev (Build 20090120172641) Java: 1.6.0_11; Java HotSpot(TM) Server VM 11.0-b16 System: Windows Vista version 6.0 running on x86; Cp1252; en_US (nb) Userdir: C:\Users\peter\.netbeans\dev20090120-b684 Verified with build #684 but the problem still exists. I verified this on the above Windows platform.
Not able to reproduce on linux(see my attached screen) so I switched the os from All to windows
It's reproduceble in Linux tested on jython 2.5b1. Seems that is a jython 2.5b1 bugs. Lastest jython trunk is working. During testing, it seems that jython 2.5b1 is unable to instanciate JFrame. Try with latest jython trunk. It seems work.
Good catch , thanks !!! I confirm I did my linux test(when it worked) using Jython 2.2.1 + Jython 2.5b0 ; this explains that it was a Jython regression in 2.5b1 so I changed the ticket to FIXED on my side.(Peter If this is not the right process when the bug was finally not in developper's code let me know).