Eclipse IDE调试-代码未反映新更改 [英] Eclipse IDE debugging - code not reflects new changes

查看:58
本文介绍了Eclipse IDE调试-代码未反映新更改的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在使用Eclipse IDE(4.2).当我在Eclipse中进行更改时,尝试对其进行调试,将编译以前的版本,而不编译新版本.目前,我要解决它,我先行Maven清理/构建,然后刷新项目.但这很烦人,每次我进行任何更改时我都需要这样做.是否有其他方法可以解决此问题,或者我可以使用插件自动获取这些更改?

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?

推荐答案

点击 Project>一次自动构建,并确保在自动构建选项的前面出现勾号.

Click Project > Build Automatically once and make sure that tick mark is appeared in front of Build Automatically option.

还必须启用热代码替换选项.点击 Windows>首选项.转到 Java>调试,选择替换热代码组中的所有选项

Also you have to enable hot code replace options. Click Windows > Preferences. Go to Java > Debug select all options in Hot Code Replace group

这篇关于Eclipse IDE调试-代码未反映新更改的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆