2010年3月30日 星期二

trace java stack

RuntimeException re = new RuntimeException();
re.fillInStackTrace();
Log.d(TAG, "Print some log here",re);



當code跑到某個function時
就會把stack都顯示出來
方便去trace誰call了這個function

沒有留言:

張貼留言