While debugging in Eclipse, you can modify the code in ‘hot-swap’ mode. This feature is very convenient and effective.
-
Hit a breakpoint
-
Execute the code step by step to find the problem
-
Modify the code directly and resume execution
Known restrictions.
The hot-swap feature will not work in these cases:
-
Modification of the class structure (operations, methods added)
-
** Modification of the operation signature
-
Modification of static elements
-
etc. (the list is not exhaustive)
In such cases, it is recommended to rebuild the module and restart a debugging session (following the process detailed in Code fixing