从堆栈跟踪行号获取实际的jsp行号? [英] Getting the actual jsp line number from a stack trace line number?
本文介绍了从堆栈跟踪行号获取实际的jsp行号?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
这是stacktrace:
Here is the stacktrace:
...
org.apache.jsp.showcustomer_jsp._jspService(showcustomer_jsp.java:128)
org.apache.jasper.runtime.HttpJspBase.service(Unknown Source)
这是我做的:
- 从stacktrace获取行号,在这种情况下为128。
- 找到
showcustomer_jsp.java
文件(并且看不到/ var / run / tomcat-6 /
- 打开它并转到第128行。
- 现在,在
_jsp.java
文件中,在128行找到的任何内容搜索.jsp
文件。 li>
- Boom!你完成了!
- Get the line number from the stacktrace, in this case 128.
- Find the
showcustomer_jsp.java
file (and it isn't exactly obvious to look in/var/run/tomcat-6/Catalina/localhost/_/org/apache/jsp
). - Open it and go to line 128.
- Now, search the
.jsp
file for the whatever you found on line 128 in the_jsp.java
file. - Boom! You're done!
请问,这样做有一个更简单的方法吗?
Please, is there a simpler way to do this?
推荐答案
我发现这个页面在Eclipse WTP常见问题解答中,介绍如何配置Eclipse,以便您可以转到生成的java代码,点击堆栈跟踪。
I have found this page on Eclipse WTP FAQ which explain how to configure Eclipse so that you can go to the generated java code clicking on the stacktrace.
这篇关于从堆栈跟踪行号获取实际的jsp行号?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文