Java实时调试(游戏) [英] Java Real-time debugging (gaming)

查看:262
本文介绍了Java实时调试(游戏)的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

在此视频中:http://www.youtube.com/watch?v = BES9EKK4Aw4



Notch(minecraft的创建者)正在做他所称的实时调试。他实际上正在修改代码,同时玩游戏,而不是每次重新编译。有没有人知道这是什么叫什么,哪里可以获得更多关于如何实现的信息?我一直在寻找周围没有任何成功!



问候,
Erwald

解决方案

此功能称为 hotswapping ,并被某些JVM。 Eclipse IDE调试器能够在调试( F11 )模式下热插拔代码。保存修改的文件后,Eclipse还可以自动构建项目(运行调试版本时,还有热交换)。 Notch似乎正在使用这种技术。


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

解决方案

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.

这篇关于Java实时调试(游戏)的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆