我想知道從哪裏可以看到我的程序使用的變量的所有值。我知道使用Log()我可以看到它將它放在代碼中,其中的值將被知道。但我不想通過代碼,我想要在程序中聲明的所有變量的所有值。如何在執行過程中查看變量及其值?
例如,
String addressString = "No address found";
double lat = location.getLatitude();
double lng = location.getLongitude();
Geocoder gc = new Geocoder(this, Locale.getDefault());
try {
List<Address> addresses = gc.getFromLocation(lat, lng, 1);
StringBuilder sb = new StringBuilder();
if (addresses.size() > 0) {
Address address = addresses.get(0);
sb.append(address.getCountryName());
}
addressString = sb.toString();
在這方面,我想知道,將存儲在變量addressString,緯度,經度的值。 但不使用Log()。 在那裏我可以看到這種方法。如果有人明白這一點,請回復我。提前感謝。
上面的鏈接不再有效。如果可能請刷新它! – ppp 2014-06-27 15:18:31