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: | Breakpoints not working with J2EE Enterprise application with JSF | ||
---|---|---|---|
Product: | debugger | Reporter: | rickhoro <rickhoro> |
Component: | Java | Assignee: | Martin Entlicher <mentlicher> |
Status: | VERIFIED FIXED | ||
Severity: | blocker | CC: | blaha, dkolar, mmirilovic, sustaining |
Priority: | P2 | ||
Version: | 6.x | ||
Hardware: | All | ||
OS: | All | ||
Issue Type: | DEFECT | Exception Reporter: | |
Attachments: | Contains the Enterprise project, the table, a text file of where the breakpoints are and the 3 log outputs including the breakpoint submissions |
Description
rickhoro
2008-04-18 11:31:02 UTC
I tried your scenario in NB 6.1 RC2 and: 1) I'm able to submit breakpoint anywhere, both bean and jsp, w/o any problem. 2) Breakpoints in jsp works, but in bean they don't. After further examination, it seems its related to glassfish status, when it's in debug mode, sometimes breakpoint can't be set, but when it's stopped, or restared all is ok. About ignoring breakpoint, it seems there's some problem, because for Visual JSF Button debugging works fine. I've reproduced the problem. It looks like debugger does not detect that the class was loaded and therefore does not try to submit the breakpoint. It needs further investigation to find out what's going on... *** Issue 134458 has been marked as a duplicate of this issue. *** Did a bit more testing on this last night, using my project..... breakpoint in JSP is fine breakpoint in Facade is fine breakpoint in a utility class is fine breakpoint in Backing Bean ignored The breakpoint I added in the Facade was in a method called by another in the same facade, and the parent method was the one being called from the Backing Bean line that I added the breakpoint to. When it's stopped at the Facade breakpoint, if I change back to the Backing Bean code, the line is marked with the gray triangle showing the origin. The project is an Enterprise app consisting of the 3 projects, the EJB project, and the WEB project, and the umbrella project (Backing beans and JSP in the WEB, Facade and utility class in the EJB). I did try looking at the sample projects, but I couldn't find a project of this structure. I tried the JSFJPA project with a breakpoint in UserManager.createUser, that works. Created attachment 61429 [details]
Contains the Enterprise project, the table, a text file of where the breakpoints are and the 3 log outputs including the breakpoint submissions
Another update!!! If you add a field breakpoint to your Backing Bean then use CTRL + F5 to start, the breakpoints are registered and execution stops in the Backing Bean. Also, if you start with CTRL + F5, then stop the deubgger, SHIFT + F5, then re-attach the debugger (Run menu) then line breakpoints work in your Backing Bean. This bug seems to be fixed by fix of issue 134276 now. Closing as fixed. Reporter, can you please try to verify the fix in the latest NB daily build? You can download the bits here http://bits.netbeans.org/dev/nightly/latest/ Thanks for your help. v. in build 20080514055548 *** Issue 134547 has been marked as a duplicate of this issue. *** *** Issue 136832 has been marked as a duplicate of this issue. *** |