在Eclipse中运行调试模式时,可以更改事情吗? [英] Can i change things while debug mode is running in Eclipse?

查看:126
本文介绍了在Eclipse中运行调试模式时,可以更改事情吗?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

如标题所示,可以在调试模式在Eclipse中运行应用程序时更改事情吗?你知道像这样的颜色或类似的东西,当他在48小时内逃脱时,我看到了Notch(Minecraft创作者)做这个事情。我认为如果我能做到这一点,那么我可以更容易地改变主菜单中的按钮,改变背景或至少文字颜色。

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 :我正在使用Slick2D
感谢并有美好的一天。

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

推荐答案

如果我正确理解你的问题,可以执行以下操作:

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

这篇关于在Eclipse中运行调试模式时,可以更改事情吗?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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