If you find a problem while debugging, you can fix your source and then continue debugging with the changed code without restarting your program.
The Fix command is available if you are running the Java 2 Platform, Standard Edition, SDK 1.4 software. There are known problems with fix and continue with SDK 1.4.0. In the Java 2 Standard Edition APIs, fix and continue is referred to as HotSwap.
To fix your code:
The source code is recompiled. If there are errors while compiling, nothing is changed in your program. Edit your source code as needed. Then execute the Fix command again.
If there are no errors, the resulting object code is swapped into the currently executing program. If the most recent call belongs to the changed class, an alert box is opened. If you click the Pop Call button, the most recent call is removed from the current call stack. If you click the Leave Call button, the program will execute with the original version of the code.
![]() |
The Fix command does not automatically rebuild JAR files, executable files, or similar files. You must rebuild these files if you want to debug them in a new session. |
See also | |
---|---|
Stepping Through Your Program |