Eclipse IDE debugging - code not reflects new changes
I'm using Eclipse IDE (4.2). When I make a change in Eclipse and try to debug it, the previous version is compiled, but not the new one. To get around this, I do maven clean/build and then refresh the project. But this is very tedious and I need to do it every time I make any changes. Is there another way around this or a plugin that I can use to pick up these changes automatically?
Solution 1:
Click Project > Build Automatically
once and make sure that tick mark is appeared in front of Build Automatically
option.
Also you have to enable hot code replace options. Click Windows > Preferences
. Go to Java > Debug
select all options in Hot Code Replace group
Solution 2:
I had the same problem and these steps fixed it:
- Run -> Run configurations
- Select the one giving the problem
- Go to the Source tab
- Make sure your project is the first entry there
- Mine had just the Default set there so I had to do this: Add -> Java Project -> Select your Project and add it