从 Eclipse 调试 JSP [英] debug JSP from eclipse

查看:29
本文介绍了从 Eclipse 调试 JSP的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

有谁知道在 Eclipse 中调试 JSP 的好工具?我希望能够在应用运行时(在我的情况下在 JBoss 下)在 Eclipse 中设置和观察断点、单步执行 Java 代码/标签等.

Does anyone know of a good tool for debugging JSPs from within Eclipse? I'd like to be able to set and watch breakpoints, step through the Java code/tags, etc within Eclipse while the app is running (under JBoss in my case).

据推测,调试从 JSP 生成的 servlet 类相当简单,但也相当不吸引人.

Presumably, it's reasonably straightforward to debug the servlet class that's generated from a JSP, but it's also fairly unappealing.

推荐答案

如果您有 WTP 安装后,您可以在 JSP 中设置断点,并且它们在常规远程调试"会话中工作正常.然而,一旦您在断点处停止,单步执行代码几乎是不可能的,找到您想要检查的任何内容都需要在变量"视图中进行大量挖掘.

If you have WTP installed, you can set breakpoints within a JSP and they work fine in a regular "remote debug" session. However, once you've stopped on a breakpoint, stepping through the code is nigh on impossible and finding whatever it is that you wish to inspect takes a lot of digging around in the "Variables" view.

这篇关于从 Eclipse 调试 JSP的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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