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 try to create new Java project, add JS file with following content: function test(){ var a =1; return 3; // line breakpoint here } test(); - add line breakpoint - debug file - when debugging is paused, hover over "a" => tooltip says "a = >Missing scope<" Product Version: NetBeans IDE Dev (Build 201311270002) Java: 1.8.0-ea; Java HotSpot(TM) Client VM 25.0-b59 Runtime: Java(TM) SE Runtime Environment 1.8.0-ea-b117 System: Linux version 3.2.0-48-generic-pae running on i386; UTF-8; en_US (nb)
It seems like tooltips in general are showing wrong information: - Tooltip shows #NUMBER for "global" variables var a = 1; function test(){ return a; } var b = test(); var c = 1; // line breakpoint here => tooltip for b and a shows e.g. #1325 as value of "a" ================================ var a = 1; function test(){ var ale = 1; return a; // line breakpoint here } var b = test(); var c = 1; => tooltip says value of "ale" is null In all cases, Variables window shows correct data
This was already partly fixed by http://hg.netbeans.org/main-silver/rev/15b40f9e6641 but some cases still remain...
Martine, will the fix also cover similar issue with Evaluate expression (should it be supported in this debugging)? Right now it seems to evaluate similarly wrong value as the tooltip.
Created attachment 143106 [details] another case To be thorough, another case. Add breakpoint to line 19 ("this.name = name") and debug file -> once debugger stops on the line, hover over "name" in line 17 => tooltip shows "name = null" Product Version: NetBeans IDE Dev (Build 201312120002)
Fixed by changeset: 270299:c38f19d66ff1 http://hg.netbeans.org/core-main/rev/c38f19d66ff1
Verified, thank you Product Version: NetBeans IDE Dev (Build 201401130002) Java: 1.8.0-ea; Java HotSpot(TM) Client VM 25.0-b65 Runtime: Java(TM) SE Runtime Environment 1.8.0-ea-b122 System: Linux version 3.2.0-48-generic-pae running on i386; UTF-8; en_US (nb)