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 255126 - [81cat] Step into without function
Summary: [81cat] Step into without function
Status: VERIFIED FIXED
Alias: None
Product: debugger
Classification: Unclassified
Component: Java (show other bugs)
Version: 8.1
Hardware: PC Windows 7
: P2 normal (vote)
Assignee: Martin Entlicher
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2015-09-09 09:08 UTC by muellermi
Modified: 2015-09-18 06:55 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments
IDE log (76.03 KB, text/plain)
2015-09-09 09:08 UTC, muellermi
Details

Note You need to log in before you can comment on or make changes to this bug.
Description muellermi 2015-09-09 09:08:36 UTC
Product Version = NetBeans IDE 8.1 Beta (Build 201508041349)
Operating System = Windows 7 version 6.1 running on amd64
Java; VM; Vendor = 1.8.0_51
Runtime = Java HotSpot(TM) 64-Bit Server VM 25.51-b03

using the nightly build  NetBeans IDE 8.1 Beta (Build 201509080002) on Java 1.8.0_u60

public class JavaApplication3 {

    public static void main(String[] args) {
        for (int i = 0; i < 10; i++) {
            sub();
        }
    }

    private static void sub() {
        System.out.println("sub");
    }
   
}

- set a breakpint onto the call of sub
- run in debug mode (Ctrl+F5)
- when debugger stops at breakpoint, step into sub (F7)

--> nothing happens

this affects the lastest builds using Java 8u60, 8.1 beta on Java 8u51 is ok
Comment 1 muellermi 2015-09-09 09:08:40 UTC
Created attachment 156005 [details]
IDE log
Comment 2 muellermi 2015-09-09 09:21:45 UTC
double checked: NB 8.1 beta using Java 8u60 is ok too
Comment 3 muellermi 2015-09-11 08:09:30 UTC
Using new user and cache dir solves this problem.
I'm going to figure out the differences in my settings.
Comment 4 Martin Entlicher 2015-09-11 08:18:34 UTC
Thanks. I was not able to reproduce this at all. Step into works for me.
Don't you have some step filters set?
Comment 5 muellermi 2015-09-11 08:38:12 UTC
Just figured out:
The issue does not depend on the NB version, but on the debugger settings:

set
Tools -> Options -> Java -> JavaDebugger -> steps resume
to "all threads"

start a debug session.
Setp into (F7) does not work anymore
Comment 6 Jiri Kovalsky 2015-09-14 12:28:21 UTC
Product Version: NetBeans IDE Dev (Build 201509130002)
Java: 1.8.0_60; Java HotSpot(TM) 64-Bit Server VM 25.60-b23
Runtime: Java(TM) SE Runtime Environment 1.8.0_60-b27
System: Linux version 3.13.0-37-generic running on amd64; UTF-8; cs_CZ (nb)

Reproduced. Thanks for the more details Michael!
Comment 7 Martin Entlicher 2015-09-15 10:01:53 UTC
Thanks for the exact steps to reproduce, it fixed by changeset: 292101:a314d86d9f82
http://hg.netbeans.org/core-main/rev/a314d86d9f82
Comment 8 Quality Engineering 2015-09-16 01:26:20 UTC
Integrated into 'main-silver', will be available in build *201509160002* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress)

Changeset: http://hg.netbeans.org/main-silver/rev/a314d86d9f82
User: mentlicher@netbeans.org
Log: #255126: Use resume on a debugger during stepping, continue action can be disabled at the given moment.
Comment 9 Jiri Kovalsky 2015-09-18 06:55:44 UTC
Product Version: NetBeans IDE Dev (Build 201509170002)
Java: 1.8.0_60; Java HotSpot(TM) 64-Bit Server VM 25.60-b23
Runtime: Java(TM) SE Runtime Environment 1.8.0_60-b27
System: Linux version 3.13.0-37-generic running on amd64; UTF-8; cs_CZ (nb)

Thanks for the fix. Verified.