title: How to enable Intellij hot code swap
body: <p>Intellij does not seem to be doing basic hot code swap on my installation.</p>
  
  <p>For this code:</p>
  
  <pre><code>public class MainTest {
      public void method1() {
          System.out.println("Breakpoint here");
      }
  
      public void method2() {
          System.out.println("Line that will get 24 modified");
      }
  
      public static void main(String[] args) {
          System.out.println("First print here");
          MainTest mainTest = new MainTest();
          mainTest.method1();
          mainTest.method2();
          System.out.println("Line that I do not modify");
      }
  }
  </code></pre>
  
  <p>I put a breakpoint on <code>mainTest.method1();</code> then modify the string at method2(), hit ctrl+s and continue to step by step. Unfortunately the runtime is not updated, old string is being printed. Full stop - compile - run does print the new string. So my conclusion is hot-swap not working.</p>
  
  <p>Is there any settings I need to set to enable hot code swap? </p>
  
  <ul>
  <li>Ubuntu, JDK 1.6 </li>
  <li>Intellij 10.5 Ultimate (evaluation)</li>
  </ul>