Eclipse IDE debugging - code not reflects new changes

北城以北 提交于 2019-12-12 19:09:24

问题


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

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!