断点在Eclipse中的JSP页面上不起作用 [英] Breakpoints not working on JSP pages in Eclipse

查看:867
本文介绍了断点在Eclipse中的JSP页面上不起作用的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

断点在Java代码中被击中,项目在调试时运行,跳过所有断点"被禁用,行断点(蓝点)在我的JSP页面的行上.

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.

Web浏览器调试的结果,所以我知道它在正确的页面上:

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

为什么我的JSP页面上的断点没有被击中?我进行更改并在浏览器中看到它们没有问题. Eclipse 4.6.2. WebSphere 8.5

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

编辑:我不确定是否相关.当我尝试在Eclipse中启动服务器时,它说

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.

要使其在Eclipse中启动,我必须双击服务器并取消选中:

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

使用生成的脚本启动服务器

Start a server with a generated script

推荐答案

找到了解决方法.在JSP中,导入Java类并调用其方法之一.在该方法的末尾放置一个断点,然后逐步将其断断续续(F5)进入JSP.

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.

这篇关于断点在Eclipse中的JSP页面上不起作用的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆