Android ADB Logcat - shows full logarithm

I use 'adb -d logcat' in the terminal to view application log files. Recently, I ended up in a large block of Runtime Errors - for some reason I don’t see all this. It just stops at the end with "... another 30":

[08-11 12: 27: 45.500 8801: 0x2261 E / AndroidRuntime] FATAL EXCEPTION: main java.lang.IllegalStateException: ArrayAdapter requires the resource identifier to be TextView at android.widget.ArrayAdapter.createViewFromResource (ArrayAdapter.java opin47) in android.widget.ArrayAdapter.getView (ArrayAdapter.java:323) in android.widget.AbsListView.obtainView (AbsListView.java:1430) in android.widget.ListView.makeAndAddView (ListView.java:1745) in android.widget.ListView .fillDown (ListView.java:670) on android.widget.ListView.fillFromTop (ListView.java:727) in the file android.widget.ListView.layoutChildren (ListView.java:1598) in android.widget.AbsListView.onLayout (AbsListView .java: 1260) on android.view.View.layout (View.java:7175) on android.widget.FrameLayout.onLayout (FrameLayout.javahaps38) on android.view.View.layout (View.java:7175) on android.widget.FrameLayout.onLayout (FrameLayout.javahaps38) on android.view.View.layout (View.java:7175) on android.widget.LinearLayout.setChildFrame (LinearLayout.java:1254) on android.widget.LinearLayout.layoutVertical (LinearLayout.java:1130) on android.widget. LinearLayout.onLayout (LinearLayout.java:1047) on android.view.View.layout (View.java:7175) on android.widget.FrameLayout.onLayout (FrameLayout.javahaps38) on android.view.View.layout (View .java: 7175) on android.widget.FrameLayout.onLayout (FrameLayout.javahaps38) on android.view.View.layout (View.java:7175) on android.view.ViewRoot.performTraversals (ViewRoot.java:1140) on android.view.ViewRoot.handleMessage (ViewRoot.java:1859) on android.os.Handler.dispatchMessage (Handler.java:99) on android.os.Looper.loop (Looper.java:130) at android.app. ActivityThread.main (ActivityThread.javahaps683) in java.lang.reflect.Method.invokeNative (native method) in java.lang.reflect.Method.invoke (Method.java:507) at com.android.internal.os.ZygoteInit $ MethodAndArgsCaller.run (ZygoteInit.java:839) at com.android.internal.os.ZygoteInit.main (ZygoteInit.javahaps97) in dalvik.system.NativeStart.main (own method) Called: java.lang.ClassCastException: android.widget.FrameLayout in android.widget.ArrayAdapter.createViewFromResource (ArrayAdapter.javahaps40) ... 30 more

How can I view the "... 30 more" issues that I get in logcat?

+6
source share
1 answer

From the question Printing a complete call stack on printStackTrace ()? :

here is the explanation caused by the 'and' ... n more 'lines in the print track. see also JavaDoc for printStackTrace . you may not have a job.

Note the presence of strings containing the characters "...". These lines indicate that the remainder of the stack trace for this exception corresponds to the specified number of frames from the bottom of the stack trace of the exception caused by this exception (exception "close"). This reduction can significantly reduce the length of the output in the general case when the wrapped exception is thrown from the same method as the “causal exception”.

+1
source

Source: https://habr.com/ru/post/894855/


All Articles