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.
Summary: | debugging session stops at JFrame statement in Jython Swing app | ||
---|---|---|---|
Product: | python | Reporter: | Peter Lam <petersl> |
Component: | Debugger | Assignee: | jymen <jymen> |
Status: | RESOLVED FIXED | ||
Severity: | blocker | ||
Priority: | P2 | ||
Version: | 6.x | ||
Hardware: | All | ||
OS: | All | ||
Issue Type: | DEFECT | Exception Reporter: | |
Attachments: |
Jython Swing sample app
show fix |
Description
Peter Lam
2009-01-16 18:02:56 UTC
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). |