Breakpoints not working on JSP pages in Eclipse

喜欢而已 提交于 2019-12-02 09:35:43

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.

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

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!