Debugging inner class in JSP in Intellij Idea

Is it possible to debug inner class in JSP?

my application server is tomcat and I am using Intellij Idea.

The normal breakpoint in jsp is fine, but the breakpoint in InnerClass does not work.

in my test jsp code:

<%@ 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");
        }
    }
%>

In the jsp file above, I set a breakpoint on "out.print (" test1 "); but it does NOT break on the line.

How can I debug InnerClass? thanks.

+4
source share
1 answer

, , , method_in_inner_class. , JSP , Java.

, ​​ JSR45.

, , IDE :

JSP Intellij , . , Intellij JSP-, , JSP-. Intellij 8, w.r.t. , .

JSP-, : - -.

-: , JSP, "-" , web.xml. -, , Intellij ( , , ), , , . , " Java EE" " - "; , - .

(Web) : "edit configurations", , - , . Intellij JSP-. Tomcat. , , , ​​ Tomcat, -. "" " " , .

, -, Caucho Resin ( Intellij Resin).

Tomcat , Intellij: "", ; Tomcat.

, , , JSP WEB-INF .

: JSP IntelliJ IDEA

, .

+1

All Articles