开发者

stack trace problem in eclipse

开发者 https://www.devze.com 2023-03-15 00:43 出处:网络
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.

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

0

精彩评论

暂无评论...
验证码 换一张
取 消