我能在JSP中调试内部类吗?
我的应用服务器是Tomcat,我正在使用Intellij Idea。
在JSP中普通的断点是可以的,但是内部类的断点却不起作用。
以下是我的测试JSP代码:
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<%@ page import="java.io.IOException" %>
<%
new InnerClass().method_in_inner_class(out);
%>
<%!
class InnerClass {
void method_in_inner_class(JspWriter out) throws IOException {
//set breakpoint under this line
out.print("test1");
}
}
%>
在上面的jsp文件中,我在“out.print(“test1”);”处设置了断点,但它没有在该行停止。
如何调试InnerClass? 谢谢。