I am trying to debug a call to a web service that uses JMS in the background. My JBoss is in debug mode. It happens that when I press F6 in Eclipse (to execute the current line), it skips certain lines. I have this method:
@Override public void log(MsgPayload payload) { 1 Date startTime = new Date(); logger.info("Publishing with BufferedPublisher.java start time:"+startTime); 3 publisher.send(payload); Date endTime = new Date(); logger.info("Publishing with BufferedPublisher.java end time:"+endTime); long mills = endTime.getTime()-endTime.getTime(); double secs = mills/1000.0; logger.info("Publishing with BufferedPublisher.java total time (seconds):"+secs); }
So what is going on? I have a breakpoint on line 1. When I press F6, it skips that line and goes to line 3. When I press F6 again, it goes to the end of the method. Half the code is never executed. ??? My question is why. I assume that my source is poorly linked to the real code that is executing. But how to change that?
Thanks.
zekou
source share