Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to use Hotswap in Netbeans?

How to do that? I can't find any option for it in the IDE... Please help me, I'm clueless.

like image 746
Dariusz G. Jagielski Avatar asked Apr 10 '12 06:04

Dariusz G. Jagielski


People also ask

What is hot swap in Java?

Java IDEs and VMs support a feature called HotSwapping. It allows you to update the version of a class while the virtual machine is running, without needing to redeploy the webapp, restart, or otherwise interrupt your debugging session. It's a huge productivity boost if you're editing the body of a method.

How do you use hotswap in IntelliJ?

Start with HotSwapAgent plugin for IntelliJ IDEA. Be sure that you have "Reload classes after compilation: Always" ON in IntelliJ IDEA in HotSwap section in your IDEA preferences. To re-deploying changed classes in IDEA press keys combination (: Command+Shift+F9 / ⊞: Ctrl+Shift+F9 )


1 Answers

  • Run your app in "debug" mode
  • Modify your .java files and save them
  • Click on the "Apply Code Changes" button that appears on the toolbar (it looks like three linked green rectangles, or Tools -> Options -> Java -> Java Debugger -> General -> Appl code changes after save)
like image 117
Marcelo Avatar answered Sep 17 '22 14:09

Marcelo