I have a set of working pages and want to inspect variables at a break point on a JSP page. unfortunately the context menu for the variable doesn't show the normal Inspect/Watch options as it does when in a Java file. Any ideas?
可以将文章内容翻译成中文,广告屏蔽插件可能会导致该功能失效(如失效,请关闭广告屏蔽插件后再试):
问题:
回答1:
Here is a solution worked for me:
In Eclipse open the Display tab view (Window -> Show View -> Display) In the Display tab write the variable or expression you want to inspect. Select it and do a right click and you'll have the a menu with the option inspect (or you can do a Ctrl + Shift + I), it will show you the value of the variable.
Hope it helps!
回答2:
Struggled with the same problem and then looked at the variables View(Window) in Eclipse. All variables are there with their names and values.
But watch/inspect entries are indeed missing in right click menu.
BTW, I'm using Eclipse Kepler.