开发者

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

0

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜