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.
Please check project [1] and: - open test1.js - add line breakpoint to 79 - debug project - once debugger stops on line 79, check the Variables => variables x,y,f,a,nn etc. are missing and their tooltip shows "null" In 8.0.2, it works with JDK8u31 (In trunk - Build 201502260001 - it does not) Thank you [1] http://services.netbeans.org/synergy/server/api/attachment.php?id=197 Product Version: NetBeans IDE 8.0.2 (Build 201411181905) Updates: NetBeans IDE is updated to version NetBeans 8.0.2 Patch 1 Java: 1.7.0_75; Java HotSpot(TM) Client VM 24.75-b04 Runtime: Java(TM) SE Runtime Environment 1.7.0_75-b13 System: Linux version 3.13.0-35-generic running on i386; UTF-8; en_US (nb)
I've tested the project on 1.8.0_40; Java HotSpot(TM) 64-Bit Server VM 25.40-b25 and 1.8.0_60-ea; Java HotSpot(TM) 64-Bit Server VM 25.60-b10 It consistently shows null values for unused variables and the correct values for variables that are used in the program. If it worked differently in the past, they probably stopped assignments of unused variables in Nashorn. IMHO this is an acceptable behavior, since values of unused variables do not matter.