Breakpoints not working on JSP pages in Eclipse

前端 未结 2 807
执笔经年
执笔经年 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

提交回复
热议问题