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 57038 - "Step into" and "Step over" fails in all but the servlet.
Summary: "Step into" and "Step over" fails in all but the servlet.
Status: CLOSED INVALID
Alias: None
Product: debugger
Classification: Unclassified
Component: Code (show other bugs)
Version: 4.x
Hardware: PC Windows XP
: P1 blocker (vote)
Assignee: issues@debugger
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2005-03-26 11:48 UTC by tomsve
Modified: 2010-04-29 09:21 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description tomsve 2005-03-26 11:48:03 UTC
I have an EJB application with a servlet client. The servlet call another class
which in turn call an EJB. I put a brakpoint in the class that call the EJB and
another breakpoint in the EJB bean implementaion. The first breakpoint still
executes in the servlet container. 

It stops at the first breakpoint, but if I press F7/F8 (step over/step into) the
debugger continues execution to the next breakpoint, which is in the EJB. The
first breakpoint was not on the EJB call, but a few (executable) lines before it!

When I reach the second breakpoint and tries to single step again the next stop
is back in my servlet, which by the way has no breakpoints! From there on (that
is, whithin the servlet) it is possible to single step. 

So my conclusion is that single stepping through the code only works in the
servlet. It does not seem to have anything to do with the servlet container or
the ejb container since it stops working as soon as you leave the servlet but
still executes within the servlet container.

This might be the same as issue #56100 which was reported for version 4.0. My
problem is with 4.1.
Comment 1 tomsve 2005-03-26 11:52:24 UTC
I forgot to mention that I'm NOT using a freeform project! I have a standard
J2EE project with a web module and an ejb module where netbeans takes care of
the ant scripts. 

/Tommy
Comment 2 Vince Kraemer 2005-03-26 22:45:58 UTC
How are you doing the debugging?

Did you attach or use the debug action on on one of the projects?

If you used the debug menu item, which project was the project you asked to debug?

Which build of the IDE are you using?  A daily or one of the EA's or the beta?

Comment 3 tomsve 2005-03-27 12:06:08 UTC
I though I said which build I was using, but that was in another issue, I missed
to provide that info for this one. Sorry. 

I'm using a daily build: 20050320. I haven't tested in a later daily build due
to issue #57039. 

I start the debugging session by using the right button menu over the J2EE
project in the project explorer and choosing "Debug project". I incorrectly
assumed that debugging a J2EE project would be no different than running it, but
under debugger control. I have however now solved the problem. For the
singlestepping in the debugger to work I need to add each subproject to the run
classpath in the J2EE projects properties. This is not required when simply
running since the J2ee project automatically includes the was and the ejb
projects in the classpath and the dependencies of each of these also gets
included somehow, but apparently this is not enough for the debugger to see them!

I wonder if this could be make clearer somehow, but I can't think of a good
answer as to how, so lets just file this as user error and close it.

/Tommy

Comment 4 Quality Engineering 2010-04-29 09:21:50 UTC
Verified ... and Closing all issues resolved into NetBeans 6.7 and earlier.