问题描述
有没有人知道从Eclipse中调试JSP的好工具?我希望能够在应用程序运行时(在我的情况下在JBoss中)设置和观看断点,逐步浏览Eclipse中的Java代码/标签等。推测,调试从JSP生成的servlet类是相当简单的,但它也是非常不吸引人的:)
干杯,
Don
如果您安装了WTP,可以在JSP中设置断点,并在常规远程调试会话中正常工作。但是,一旦你在断点上停下来,你就可以在代码中执行代码是不可能的,发现你想要检查的内容在变量视图中需要大量的挖掘。
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).
Presumably it's reasonably straightforward to debug the servlet class that's generated from a JSP, but it's also fairly unappealing :)
Cheers,Don
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的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!