stack trace problem in eclipse
I wrote a code as shown below to print stack trace. I am using eclipse IDE. I am unable to view the stack trace. I checked in开发者_开发问答 console and logcat.
catch (Exception ex)
{
//Exception handling
ex.printStackTrace();
Log.e("error in uploading", ex.getMessage());
}
I logcat exception stack traces with...
catch (IOException e)
{
Log.w(TAG, "IOException: " + Log.getStackTraceString(e));
}
Is multiple devices showing in your DDMS=>Devices tab? If this is the case then select the device you are running your application. LogCat shows logging from one device at a time
精彩评论