Breakpoints not working on JSP pages in Eclipse

前端 未结 2 781
执笔经年
执笔经年 2021-01-27 12:26

Breakpoints are being hit in the Java code, the project is being run as Debug, \"Skip All Breakpoints\" is disabled, line breakpoints (blue dots) are on lines in my JSP pages.

相关标签:
2条回答
  • 2021-01-27 12:54

    To get debug on a JSP you might need an additional step:

    Open the appropriate server in the Servers view of the Server Perspective (Window > Open Perspective > Server), and ensure that the Generate debug information when compiling JSPs (debug mode only) check box is selected. Close the server editor.

    This is described in this doc: Debugging JSP files

    0 讨论(0)
  • 2021-01-27 12:56

    Found a workaround. In the JSP, import a Java class and call one of it's methods. Put a breakpoint at the end of that method and step through it (F5) into the JSP.

    0 讨论(0)
提交回复
热议问题