简体   繁体   English

Eclipse中的堆栈跟踪问题

[英]stack trace problem in eclipse

I wrote a code as shown below to print stack trace. 我编写了如下所示的代码以打印堆栈跟踪。 I am using eclipse IDE. 我正在使用Eclipse IDE。 I am unable to view the stack trace. 我无法查看堆栈跟踪。 I checked in console and logcat. 我检查了控制台和logcat。

catch (Exception ex)
    {
    //Exception handling
        ex.printStackTrace();
        Log.e("error in uploading", ex.getMessage());
    }

I logcat exception stack traces with... 我用...记录logcat异常堆栈跟踪

catch (IOException e) 
        {
            Log.w(TAG, "IOException: " + Log.getStackTraceString(e));
        } 

Is multiple devices showing in your DDMS=>Devices tab? DDMS =>设备选项卡中是否显示多个设备? If this is the case then select the device you are running your application. 如果是这种情况,请选择您正在运行应用程序的设备。 LogCat shows logging from one device at a time LogCat一次显示一台设备的日志记录

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM