Can i change things while debug mode is running in Eclipse?

半世苍凉 提交于 2019-12-08 04:53:10

问题


so as the title states, can i change things while debug mode is running an application in Eclipse? You know like colors or stuff like that, I've seen Notch (Creator of Minecraft) do this thing when he was making "Escape" in 48 hours. I think that if I can do that then is more easy for me to change things like, moving buttons in the main menu, changing backgrounds or at least text colors.

PS: I'm using Slick2D Thanks and have a nice day.


回答1:


If I understand your question correctly, you can do the following:

  • Window->Open perspective->Debug
  • Add a breakpoint somewhere in your code where applicable
  • Window->Show view->Variables
  • Run->Debug
  • When the debugging pauses because of your breakpoint, go to the variables panel and change whatever value has been assigned so far (in the "Values" column).
  • Run->Resume (or Step Over, or Step Into) to continue debugging
  • The program will resume with your new value assigned to the variable


来源:https://stackoverflow.com/questions/16885281/can-i-change-things-while-debug-mode-is-running-in-eclipse

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!