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: | The Step Into action doesn't work right after first debuger finishing | ||
---|---|---|---|
Product: | debugger | Reporter: | Martin Fousek <marfous> |
Component: | Code | Assignee: | Martin Entlicher <mentlicher> |
Status: | VERIFIED FIXED | ||
Severity: | blocker | CC: | sustaining |
Priority: | P2 | ||
Version: | 6.x | ||
Hardware: | All | ||
OS: | All | ||
Issue Type: | DEFECT | Exception Reporter: |
Description
Martin Fousek
2008-11-10 17:10:52 UTC
Reproduced. It does not stop on the second Step Into and continues to the next breakpoint. Step Into Next Method (SHIFT-F7) works right. It should be fixed by changeset: 107886:6c7a37876a09 http://hg.netbeans.org/main/rev/6c7a37876a09 Integrated into 'main-golden', will be available in build *200811121401* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress) Changeset: http://hg.netbeans.org/main/rev/6c7a37876a09 User: mentlicher@netbeans.org Log: #152891 - It neems to be necessary to set the count filter for the breakpoint to actually work. Please verify this issue so it can be included in NetBeans 6.5 Patch1 Seems to be working fine. Checked as verified. I've transplanted the changeset http://hg.netbeans.org/main/rev/6c7a37876a09 into release65_fixes repository as http://hg.netbeans.org/release65_fixes/rev/b6c721921985 I try it in NetBeans IDE Dev (Build 200811240201) and the fix doesn't work for me. Please try the "Step Into" action in the servlet. I have something like this in servlet ... protected void processRequest(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException { response.setContentType("text/html;charset=UTF-8"); PrintWriter out = response.getWriter(); try { out.println("<html>"); out.println("<head>"); out.println("<title>Servlet adder</title>"); out.println("</head>"); out.println("<body>"); out.println("<h1>Adder servlet</h1>"); printResult(request, response, out); out.println("</body>"); out.println("</html>"); } finally { out.close(); } } private void printResult(HttpServletRequest req, HttpServletResponse res, PrintWriter out) { float num1 = Float.parseFloat(req.getParameter("num1")); float num2 = Float.parseFloat(req.getParameter("num2")); out.print( num1 + " + " + num2 + " = "); out.println(num1+num2); } Copy (or overwrite) part of this code into your servlet and place the breakpoint on the line "printResult(request, response, out);". After then invoke debugging and try Step Into action. Reproduced. This seems to be a different issue, since the Step Into action does not work since the first attempt. Going to explore what's wrong... This is a very strange behavior. I'm able to reproduce the problem in build 200811240201 from bits.netbeans.org. But as soon as I start NetBeans in debug mode, Step Into behaves correctly! I'm not able to reproduce this at all in my own build compiled from NetBeans sources. From these symptoms this looks like some subtle race-condition... marfous, is this reproducible also in 6.5? Yes, I was testing it now and I'm able to reproduce it in 6.5. So, may I fill new issue and we close this one as fixed (because of different issue)? Yes please, fill a new issue. This is already fixed, including 6.5 patch, so it's better to have a separate issue for a different problem. Thanks. OK. So this issue is fixed, I will fill a new one. Verified. |