在IntelliJ Idea中编辑并继续 [英] Edit and continue in IntelliJ Idea?

查看:115
本文介绍了在IntelliJ Idea中编辑并继续的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

使用IntelliJ Idea Community Edition调试时是否可以编辑一些代码?我不能在选项中找到这个功能。

解决方案

是的,它被称为热插拔。您可以在调试过程中编译修改后的代码,并且类文件将被替换,直到您停止调试。确保在调试器设置中启用hotswap选项。



注意:更改方法签名时,热插拔不起作用。 >

Is it possible to edit some code while debugging using IntelliJ Idea Community Edition? I can't find this feature in the options.

解决方案

Yes, its called 'hot swap'. You can compile your modified code in the middle of the debugging and the classes files will be replaced until you stop the debug. Make sure to enable hotswap option in the debugger settings.

Note: hot swap doesn't work when you change method signatures.

这篇关于在IntelliJ Idea中编辑并继续的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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