Bug 463254 - Javascript debugger: value of variable is not shown on hover over source
Summary: Javascript debugger: value of variable is not shown on hover over source
Status: NEW
Alias: None
Product: JSDT
Classification: WebTools
Component: Debug (show other bugs)
Version: 3.6.1   Edit
Hardware: PC Windows 7
: P3 normal (vote)
Target Milestone: ---   Edit
Assignee: Project Inbox CLA
QA Contact: Victor Rubezhny CLA
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2015-03-27 03:54 EDT by Christian Luidolt CLA
Modified: 2015-03-27 03:54 EDT (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 Christian Luidolt CLA 2015-03-27 03:54:31 EDT
when debugging Javascript, for (some) functions information is shown when hovering over the source, but not for variables.

I traced it down a little bit:

getHoverInfo is called (instead of getHoverInfo2) because JavaEditorTextHoverProxy does not implement ITextHoverExtension2

Daemon Thread [Text Viewer Hover Presenter] (Suspended (breakpoint at line 43 in JavaScriptDebugHover))	
	JavaScriptDebugHover.getHoverInfo(ITextViewer, IRegion) line: 43	
	BestMatchHover.getHoverInfo(ITextViewer, IRegion) line: 99	
	JavaEditorTextHoverProxy.getHoverInfo(ITextViewer, IRegion) line: 67	
	TextViewerHoverManager$4.run() line: 168	

--> the information is of type String 

The JavaScriptDebugHover also returns an IInformationControlCreator of type org.eclipse.wst.jsdt.debug.internal.ui.eval.ExpressionInformationControlCreator which creates an org.eclipse.wst.jsdt.debug.internal.ui.eval.ExpressionInformationControlCreator.ExpressionInformationControl 

This setInput method expects an object of type IVariable but the object is the object returned by getHoverInfo and is of type String.

--> no hover-information shown