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

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

问题描述

我有一组工作页面,并且想在JSP页面上的断点处检查变量.不幸的是,变量的上下文菜单不像在Java文件中那样显示常规的检查/监视"选项.有什么想法吗?

I have a set of working pages and want to inspect variables at a breakpoint 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中打开显示"选项卡视图(窗口"->显示视图"->显示") 在显示选项卡中,编写要检查的变量或表达式. 选择它并右键单击,您将获得一个带有检查选项的菜单(或者您可以执行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天全站免登陆