Categories
discuss

Edit and continue in IntelliJ IDEA?

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

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

Answer

Yes, it’s called ‘hot swap’. You can compile your modified code in the middle of debugging and the class files will be replaced until you stop debug. Make sure to enable the HotSwap option in the debugger settings.

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

Source: stackoverflow
Text is available under the Creative Commons Attribution-ShareAlike License; additional terms may apply. By using this site, you agree to the Privacy Policy, and Copyright Policy. Content is available under CC BY-SA 3.0 unless otherwise noted. The answers/resolutions are collected from stackoverflow, are licensed under cc by-sa 2.5 , cc by-sa 3.0 and cc by-sa 4.0 © No Copyrights, All Questions are retrived from public domain..