[英]Debug global variable in eclipse - Java/Android
I'm debugging with eclipse an Android app but I can not see the value of Global Static Variables
. 我正在使用eclipse调试Android应用程序,但看不到“
Global Static Variables
的值。
public class Example{
private static int variable;
public void someFunct(){
//some code
int aux = variable;
// some code
}
}
I can check the value if assign to a local variable the global variable value, but I can't see the global variable while debugging. 如果将全局变量值分配给局部变量,我可以检查该值,但是调试时看不到全局变量。
How can I solve it? 我该如何解决?
Put watch on that Variable
when you debug. 调试时,请注意该
Variable
。 and you can see in " Expression
" tab inside of Debug
Perspective 并且您可以在
Debug
Perspective中的“ Expression
”选项卡中看到
Right click on global Variable then select watch
右键单击全局变量,然后选择
watch
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.