[问题] 如何trace static valuable值的变化

楼主: qazsd ( )   2015-07-29 17:00:14
请教一下版大
小弟在如下的for循环(第1002行)设了中断点,
然后程式呼叫了第1001行的showLength(),例如:
1001 public static void showLength
1002 for (int i = 0; i < hiStr.length; i++)
1003 {
//Codes
..
..
10XX }
hiStr在一开始之前宣告为static,在跑到showLength()之前其值可能有被异动,
想请问要怎么用知道hiStr在跑到showLength之前,
hiStr被呼叫的位置(行数)及值的变化?
用Eclipse或Android Studio可以办到吗?
谢谢!
※ 发信站: 批踢踢实业坊(ptt.cc), 来自: 203.208.196.50
※ 文章网址: https://www.ptt.cc/bbs/java/M.1438160417.A.2B1.html
作者: mozzan (mozzan)   2015-07-29 20:10:00
把myStr存取的方式换成只能透过function?

Links booklink

Contact Us: admin [ a t ] ucptt.com