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.
Created attachment 151859 [details] Screenshot showing invalid result of evaluated JavaScript code snippet Product Version: NetBeans IDE Dev (Build 201502060001) Java: 1.8.0_25; Java HotSpot(TM) 64-Bit Server VM 25.25-b02 Runtime: Java(TM) SE Runtime Environment 1.8.0_25-b17 System: Linux version 3.13.0-24-generic running on amd64; UTF-8; en_US (nb) Description: ============ Instead of providing correct values in tooltips NetBeans Debugger shows "null" as result of "number - 1" JavaScript code while value of "number" is 4. See attached screenshot. Steps to reproduce: =================== 1. Open attached project. 2. Open "Source Packages > javaapplication10 > JavaApplication10.java" file in Editor. 3. Toggle line 29 breakpoint (i.e. with "Object result = inv.invokeFunction("calculateFactorial", 4);" code). 4. Press Ctrl+F5 to start debugging session. 5. When Java debugger hits line 29 breakpoint press F7 to step into the JavaScript code. 6. Hover your mouse over "number" variable to see that its value is 4. 7. Select "number - 1" code snippet at line 4 and hover your mouse over that selected code. Expected: Tooltip shows "number - 1 = 3". Actual: Tooltip shows "number - 1 = null".
Created attachment 151860 [details] Project reproducing the described invalid tooltip evaluation of JavaScript code snippet.
BTW, the "Evaluate Expression" does not logically work either.
Please look at this bug in 8.1 timeframe. Thanks.
This was already submitted in issue #240395. Investigating a fix... *** This bug has been marked as a duplicate of bug 240395 ***
Verified as duplicate of #240395.