Skip to content
Advertisement

Breakpoints not working on JSP pages in Eclipse

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.

JSP page with breakpoint

The result in the web browser debug, so I know it’s hitting the right page: Web browser

Why are my breakpoints on JSP pages not being hit? I’m having no issue making changes and seeing them reflected in the browser. Eclipse 4.6.2. WebSphere 8.5

Edit: I’m not sure if this is related. When I try to start my server in Eclipse it says

Cannot connect to the server process. Make sure the server is already started.

to get it to start in Eclipse I have to double click the server and uncheck:

Start a server with a generated script

Advertisement

Answer

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.

User contributions licensed under: CC BY-SA
2 People found this is helpful
Advertisement