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 269051 - Javascript debugging variables shows wrong type
Summary: Javascript debugging variables shows wrong type
Status: NEW
Alias: None
Product: ide
Classification: Unclassified
Component: Code (show other bugs)
Version: 8.2
Hardware: PC Linux
: P3 normal (vote)
Assignee: issues@ide
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2016-11-21 08:45 UTC by ms2701
Modified: 2016-11-21 08:45 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description ms2701 2016-11-21 08:45:19 UTC
Product Version = NetBeans IDE 8.2 (Build 201609300101)
Operating System = Linux version 4.4.0-47-generic running on amd64
Java; VM; Vendor = 1.8.0_101
Runtime = Java HotSpot(TM) 64-Bit Server VM 25.101-b13

Reproducibility: Happens every time

STEPS:
Create Javascript File:
~~~
class C3 {
  constructor (title)
  {
    this.title = title;
    this.classname = "class C3";
  }
}

var c = new C3('I am c');
var d = new C3('I am d');
console.log("typeof c: " + typeof c);
console.log("typeof d: " + typeof d);
~~~

If you debug this file and look into Window->Debugging->Variables, c is shown as function, d is show as object.
If you add them to a watch, they are shown correct inside watch (both as objects).

EXPECTED:
Both variables shown as type object.