How to inspect a variable on a JSP page

↘锁芯ラ 提交于 2020-01-02 00:26:20

问题


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

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!