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.

Bug 170802

Summary: Breakpoints cannot be set in Form files
Product: debugger Reporter: pribyl <pribyl>
Component: JavaAssignee: Martin Entlicher <mentlicher>
Status: RESOLVED FIXED    
Severity: blocker CC: jstola
Priority: P1 Keywords: REGRESSION
Version: 6.x   
Hardware: All   
OS: All   
Issue Type: DEFECT Exception Reporter:

Description pribyl 2009-08-24 14:02:56 UTC
Product Version: NetBeans IDE Dev (Build 200908221401)
Java: 1.6.0_15; Java HotSpot(TM) Client VM 14.1-b02
System: Windows XP version 5.1 running on x86; Cp1250; cs_CZ (nb)

It is impossible to set a breakpoint in Form files.

"Toggle Line Breakpoint" option is disabled, clicking into gutter does nothing. 

Reproducible for all Swing/AWT GUI Forms. It works without problem in other files.
Comment 1 Martin Entlicher 2009-08-24 14:19:59 UTC
Reproduced.
I have no idea what is wrong, since breakpoints work without problems in my private dev build.
Regression caused by some strange integration (like issue #170677).
Comment 2 Martin Entlicher 2009-08-24 14:39:02 UTC
I have a suspicion that it's caused by fix of issue #168415. To prove that I'm going to update and recompile sources...
Comment 3 Martin Entlicher 2009-08-24 16:35:44 UTC
This is really a regression caused by fix of issue #168415. NbDocument.findRecentEditorPane(ec) returns null when ec is
an instance of org.netbeans.modules.form.FormEditorSupport.
Comment 4 Martin Entlicher 2009-08-24 17:00:57 UTC
Fixed by rollback of debugger-side part of http://hg.netbeans.org/main-golden/rev/218c176d8a97
We use back the expensive call EditorCookie.getOpenedPanes() that works fine.
Fixed in changeset:   142464:494c247fd06e
Comment 5 Quality Engineering 2009-08-25 02:44:14 UTC
Integrated into 'main-golden', will be available in build *200908242212* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress)
Changeset: http://hg.netbeans.org/main-golden/rev/494c247fd06e
User: mentlicher@netbeans.org
Log: #170802 - Use EditorCookie.getOpenedPanes() again to fix regression. Rollback of fix of issue #168415.
Comment 6 Martin Entlicher 2009-08-25 12:45:16 UTC
*** Issue 170865 has been marked as a duplicate of this issue. ***