问题
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.
来源:https://stackoverflow.com/questions/12980979/how-to-inspect-a-variable-on-a-jsp-page