Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Java Real-time debugging (gaming)

Tags:

java

debugging

In this video :http://www.youtube.com/watch?v=BES9EKK4Aw4

Notch (minecraft's creator) is doing what he refers to as 'real-time debugging'. He's actually modifying the code and plays with the game at the same time without recompiling everytime.

Does anyone know what this is called or where I could get more information on how to achieve this? I've been looking around without any success!

Regards, Erwald

like image 325
Erwald Avatar asked Apr 12 '12 15:04

Erwald


2 Answers

This feature is called "hotswapping" and is supported by certain JVMs. The Eclipse IDE debugger is capable of hot-swapping your code in the debug (F11) mode. Eclipse can also auto-build your project once you save a modified file (AND hot-swap when running a debug build). Notch seems to be using exactly this technique.

like image 69
Alexander Pavlov Avatar answered Sep 18 '22 10:09

Alexander Pavlov


some IDE s are doing this ie: eclipse, netbeans, intellij idea etc.

however some changes requires recompiling (method addition or deletion etc.)

and what he using is probably eclipse.

like image 27
guness Avatar answered Sep 20 '22 10:09

guness