问题
Im using Eclipse IDE (4.2). When i make a change in Eclipse, try to debug it, the previous version is compiled, but not the new one. At present I to go around it, i go maven clean/build and then refresh the project. But this is very tidious 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?
回答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
回答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
来源:https://stackoverflow.com/questions/23389221/eclipse-ide-debugging-code-not-reflects-new-changes