Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 364139 - Rhino Debugger does not show value of variable of java classes.
Summary: Rhino Debugger does not show value of variable of java classes.
Status: NEW
Alias: None
Product: JSDT
Classification: WebTools
Component: Debug (show other bugs)
Version: unspecified   Edit
Hardware: PC Windows 7
: P3 normal with 2 votes (vote)
Target Milestone: ---   Edit
Assignee: Project Inbox CLA
QA Contact: Michael Rennie CLA
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-11-18 06:35 EST by Sumit Singh CLA
Modified: 2011-11-21 11:43 EST (History)
1 user (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Sumit Singh CLA 2011-11-18 06:35:45 EST
Build Identifier: 

whenever you create object of your java class (Ex:- String or any other  ) then at the time of debugging of script, if u want to  see the values of  your variable the it don't show any thing .
means in case of any object in java debugger if i want to see the value of  reference variable  then is show which is write in toString() method.As in case of String is show the value of String .
But in Rhino debugger if we want to see the value the it simply say that it is as Object .So in case of String we never see the value of String .
So what i think is there is some problem because it was showing the value which to string function return ,if a toString return hash-code for an  Object then in rhino it show as Object or if  toString return so value then still it show it is an object..
Show we are enable to find the value of variable mainly when variable is a reference variable ..  

Reproducible: Always

Steps to Reproduce:
1.make a reference (Ex. var test=new String("Hello world"));
2.start debugger.
3.try to get value of variable test . it will show test is an object instead of "hello world"
Comment 1 Michael Rennie CLA 2011-11-21 11:43:28 EST
The current implementation in JSDT for Rhino has no support for debugging into Java classes from JavaScript. See also bug 343142.