我是使用 Eclipse 进行 Android 开发的新手。我问一个非常基本的问题:
是否可以在调试会话期间观察/监视变量的内容? (有点像在 Visual Studio 中)
我知道这是一个相当蹩脚的问题,但我自己却无法弄清楚。
提前致谢,
Gallien
首先选择Debug视角为:
然后设置断点在你想要的地方:
After that create a Debug configuration via Debug As->Debug Configurations... and then Debug as Android Application as shown below:
Then in Debug perspective you can trace/watch value of your desired variable by pressing F8:
That's it, you can also evaluate expressions through Expressions view. If it is not enabled select it from:
Window->Show View->Other->Debug->Expressions.
本文内容由网友自发贡献,版权归原作者所有,本站不承担相应法律责任。如您发现有涉嫌抄袭侵权的内容,请联系:hwhale#tublm.com(使用前将#替换为@)