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 250269 - Tooltip with evaluated JavaScript code snippet shows "null"
Summary: Tooltip with evaluated JavaScript code snippet shows "null"
Status: VERIFIED DUPLICATE of bug 240395
Alias: None
Product: debugger
Classification: Unclassified
Component: Java (show other bugs)
Version: 8.1
Hardware: PC Linux
: P3 normal (vote)
Assignee: Martin Entlicher
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2015-02-06 12:57 UTC by Jiri Kovalsky
Modified: 2015-04-20 13:26 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments
Screenshot showing invalid result of evaluated JavaScript code snippet (20.42 KB, image/png)
2015-02-06 12:57 UTC, Jiri Kovalsky
Details
Project reproducing the described invalid tooltip evaluation of JavaScript code snippet. (15.77 KB, application/x-java-archive)
2015-02-06 12:58 UTC, Jiri Kovalsky
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Jiri Kovalsky 2015-02-06 12:57:16 UTC
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".
Comment 1 Jiri Kovalsky 2015-02-06 12:58:12 UTC
Created attachment 151860 [details]
Project reproducing the described invalid tooltip evaluation of JavaScript code snippet.
Comment 2 Jiri Kovalsky 2015-02-06 13:04:52 UTC
BTW, the "Evaluate Expression" does not logically work either.
Comment 3 Jiri Kovalsky 2015-02-11 15:04:29 UTC
Please look at this bug in 8.1 timeframe. Thanks.
Comment 4 Martin Entlicher 2015-04-20 11:58:20 UTC
This was already submitted in issue #240395.
Investigating a fix...

*** This bug has been marked as a duplicate of bug 240395 ***
Comment 5 Jiri Kovalsky 2015-04-20 13:26:00 UTC
Verified as duplicate of #240395.