Eclipse 和 cronTriggered 作业调试
我有一个用 Java 开发的 Web 应用程序,使用 GWT、Spring 和 Hibernate。
该应用程序有一个 cronTriggered 作业(它扩展了 QuartzJobBean),在 application-context.xml 文件中设置。
如何调试该作业(每分钟触发一次运行)?
我尝试在作业类的方法executeInternal()中设置断点(我使用的是Eclipse Java EE Helios),但似乎没有达到。
I have a webapp developped in Java, using GWT, Spring and Hibernate.
This app has a cronTriggered job (which extends QuartzJobBean), set in a application-context.xml file.
How do I debug that job (which is triggered to run every minute) ?
I have tried to set breakpoints in the method executeInternal() of the job class (I am using Eclipse Java EE Helios), but they don't seem to be reached.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
更改应用程序的启动方式以包含远程调试代理。这样,您就可以从 Eclipse 附加到它。连接后,它应该响应 Eclipse 中设置的断点,然后您就进入了典型的调试会话。请注意,如果应用程序使用超时,它们可能会在您停在断点处时触发,这可能会导致之后难以继续执行。
Change how the app is started to include the remote debugging agent. That way, you can attach to it from Eclipse. Once attached, it should respond to breakpoints set within Eclipse and from there you are in a typical debugging session. Be aware if the app uses timeouts, they can trigger while you are stopped at a breakpoint which can make it difficult to continue execution afterwards.