Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

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.

like image 732
Simon V. Avatar asked Dec 15 '12 16:12

Simon V.


2 Answers

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.

like image 199
axelrod Avatar answered Nov 15 '22 19:11

axelrod


If you are 'hot swap' addicted like me, you will love DCEVM (https://dcevm.github.io/)

Using DCEVM you don't have to reload debugging session almost never.

Unfortunately i haven't found anything like that for .NET :(

like image 33
lukyer Avatar answered Nov 15 '22 17:11

lukyer