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 46939 - Incorrect step over behaviour
Summary: Incorrect step over behaviour
Status: CLOSED WORKSFORME
Alias: None
Product: debugger
Classification: Unclassified
Component: Code (show other bugs)
Version: 4.x
Hardware: PC Linux
: P2 blocker (vote)
Assignee: issues@debugger
URL:
Keywords: RANDOM
Depends on:
Blocks:
 
Reported: 2004-08-05 14:53 UTC by Jan Lahoda
Modified: 2010-04-29 09:18 UTC (History)
1 user (show)

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 Jan Lahoda 2004-08-05 14:53:12 UTC
NB trunk continous build 20040805-0359,
JDK1.5.0-beta3-b61.

Maybe root cause of issue #46894.

Consider the following class:

public class Test {
    public static void main(String[] args) {
        System.err.println("test1"); //bp 1
        System.err.println("test2");
        System.err.println("test3");
        System.err.println("test4"); //bp 2
        System.err.println("test4");
    }
}

(//bp X means lines with line breakpoints).
1. Start the debugger (I do it using Run/Run Other
/Debug "XXX".
2. The debugger stops on the line with //bp 1
3. Try to do Step Over. Sometimes the step over
works OK, sometimes it simply does "Continue" (ie
the debugger stops on the next breakpoint).

It seems that it might have something to do with
invalid watches, as it often (but not 100%
reliably) happens with invalid watches (the
Watches view has to be visible).
Comment 1 Tomas Zezula 2004-08-05 15:52:07 UTC
I had the same behaviour of the debugger when the watches window is
opened.
Comment 2 Maros Sandor 2004-08-06 10:04:30 UTC
I cannot reproduce it on WXP 1.5.0-b61.
Comment 3 Maros Sandor 2004-08-06 10:58:54 UTC
Cannot reproduce it on Fedora Core 1 with JDK 1.5.0-b61 either.
Marking as incomplete until we find some working test scenario.
Comment 4 Jan Jancura 2004-09-02 10:32:44 UTC
I have tried it many times, and it works for me. I have tried it with
some watches too.
JDK1.5b3
Comment 5 Quality Engineering 2010-04-29 09:18:45 UTC
Verified ... and Closing all issues resolved into NetBeans 6.7 and earlier.