user471450
user471450

Reputation:

Java cache issue ? debugger in eclipse?

I use eclipse debugger to step through debug points. My problem is that when i update the java code for server, the eclipse doesnt take the updated code. Also the break points seem to appear from previous code. The break points do not work...Example, sometimes, the debugger steps through an empty white line, instead of going to next statement. Seems to me like an update issue for java cache.

I am not sure as to how to avoid it. I usually go with clean and build. But, is there a easier way to just hot deploy the code and make all of it work properly without rebuilding the entire project?

OR another quick question, can we atleast automate java cache clean mechanism to run everytime in windows?

#

My question was, even when I refresh the project/ when I clean & build, sometimes in Eclipse the old code is taken instead of a new code. I am not sure why this happens, only when I clear the java cache, this issue dissapers and I have to redeploy my jboss.

My question to you guys was, is there a way to avoid this?? I am using Flex builder( built on eclipse) for development.

Upvotes: 1

Views: 3627

Answers (2)

mor222
mor222

Reputation: 410

One thing you can do is to link your server project src folder to your current project.

This could be done as follows:

Right click on the current project --> Properties --> Java Build Path --> Source --> Link Source --> Browse, then locate your server project src. Finally change the Folder name field as you wish.

I hope this helps :)

Upvotes: 1

dimitrisli
dimitrisli

Reputation: 21381

Build > Right click on the project > Refresh > On the Server view it should show it picked up a change > debug on the server

Upvotes: 0

Related Questions