开发者

Eclipse and cronTriggered jobs debugging

开发者 https://www.devze.com 2023-03-01 13:09 出处:网络
I have a webapp developped in Jav开发者_如何学编程a, using GWT, Spring and Hibernate. This app has a cronTriggered job (which extends QuartzJobBean), set in a application-context.xml file.

I have a webapp developped in Jav开发者_如何学编程a, 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.


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.

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号