如何检查JSP页面上的变量 [英] How to inspect a variable on a JSP page

查看:115
本文介绍了如何检查JSP页面上的变量的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有一组工作页面,想要在JSP页面的断点处检查变量。遗憾的是,变量的上下文菜单没有像在Java文件中那样显示正常的Inspect / Watch选项。有什么想法吗?

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?

推荐答案

这是一个适合我的解决方案:

Here is a solution worked for me:

在Eclipse中打开显示选项卡视图(窗口 - >显示视图 - >显示)
在显示选项卡中,编写要检查的变量或表达式。
选择它并右键单击,你会看到一个带有选项inspect的菜单(或者你可以执行Ctrl + Shift + I),它会显示变量的值。

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.

希望它有所帮助!

这篇关于如何检查JSP页面上的变量的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆