No logcat tab in android device monitor - android

I have an issue with my phone at the moment so am using an emulator within android studio.
I have launched android device monitor from android studio.
I understand android device monitor is meant to have a logcat tab, as in the tabs should be "threads, heap, logcat, allocations, network, file explorer..."
In instructions i've seen it here
for me, the logcat tab seems to be missing.
Why is it missing and how can I make it show?
I can do adb debug from the command line and get a long listing. And I have launched my emulator already from android studio.
Here is a screenshot from my computer - note the tabs Threads, Heap, but no logcat.

In The above image posted in your question, in the second screenshot you give, the large screenshot from your computer, there is a Logcat window at bottom left. Circled below.
(As opposed to the top row where it was in the instructions you mentioned)

Related

Android, track Memory by DDMS, "Get Allocations" doesn't do anything

As the title of the question said. Steps I did:
click on Update heap
In Allocation Tracker tab, click "Start Tracking"
Click "Get Allocations"
In the console, I saw red messages saying:
[2013-12-29 13:56:40 - ddm-heap] *** Received REAL`
What happened? am I missing anything?
Thanks
It needs to be done in Android Studio. (Thanks to the Project Member who said this on this bug report: https://code.google.com/p/android/issues/detail?can=2&start=0&num=100&q=&colspec=ID%20Status%20Priority%20Owner%20Summary%20Stars%20Reporter%20Opened&groupby=&sort=&id=74059)
You can see that the icons even have the same name as the icons in DDMS (which is confusing)! But the Allocation Tracker in DDMS does not work, and the one in Android Studio "Android Monitor" does.
P.S. In the screenshots I was using Android Studio 2.3 and Android Device Monitor version 25.2.2.
Wrong (Does not work):
Right (works):
The results will show up in a window next to your source code like this:
For more info:
https://developer.android.com/studio/profile/am-memory.html https://developer.android.com/studio/profile/am-allocation.html
Well, REAL is a REcent ALlocation.
Based on the source code, logging an error is the very first line of handleREAL(). Just an assumption - this should be Log.d() instead of Log.e(), but I cannot say for sure.
And yes, "Get Allocations" for me works not every time I click it. The resulting log cannot be exported, and disappears as soon as the app on device finishes. Sadly, not a very convenient tracing tool...

How do I select the device LogCat is showing in eclipse?

I'm using eclipse for Android development. Often I have several emulators (and devices) running in order to test my app.
LogCat magically switches to the log from the device I just launched the app on. This is fine most of the time, but sometimes I want to switch back to a different device without restarting an app.
I can't figure out where to select which device LogCat is showing. Where can I change it?
I'm using Eclipse Juno on OS X, if that makes any difference. Here's what my LogCat window looks like:
Go to Window -> Show View -> Devices.
Now you'll have another devices tab present, and in that you can select which device you want to see in the LogCat, as well as the running apps on that device in debug mode.

getting blank screen in logcat

I have got a problem in my logcat screen and the problem is that,whenever I get error from my application I get blank screen in logcat and I am unable to look at the errors and fix them.How do I overcome this sort of issue?
here is my logcat screen:
Update your ADT plugin in Eclipse and right now you are using deprecated Logcat.
Help > Check for Updates
Go to DDMS->Devices and select the device that you are currently working on.
Just Try this command:---
adb shell
echo 1 > /sys/kernel/logger/log_main/enable
I run into that problem sometimes and I suggest:
Make sure you select the "V" tag to prove that why this happened is not because there is really no errors (Since you select the "E" tag).
Install the USB driver from the manufacturer of your device. Although you can connect the phone to PC as an USB storage device without the driver, you can't debug on the phone without it.
In Settings->Applications->Development, check the USB debugging choice to allow you to debug on the phone.
Make sure you have selected the proper device or emulator, not some other emulators or devices.
Sometimes, the logcat shows nothing, even if you have finished these steps above. In this case, click the "Clear" tag(at the top right, with a RED cross), unplug the phone and plug in again.
you have 3 things to do..
start emulator...
then see devices select your avd like Windows-show view-other-android-devices...
then start logcat Windows-show view-other-android-logcat..that's it and it will do..
But First you should see the emulator in devices..
If you can't then in devices click down arrow near camera icon and click on reset adb.
I ran into this issue in the Android Debug Monitor today. The reason this happened to me was because I had set the "maximum number of logcat messages to buffer" under Preferences/Android/LogCat to some very large amount like 50000000000. If you have played with this setting try setting it lower to like 5000. Once I configured mine back down to 50000 I started seeing messages come through LogCat again. You may have to restart things like the Android Debug Monitor, adb, the computer, the emulator, or the phone. At one point or another I tried all of those. Also you should see an error message when you try to configure this setting back to default. I believe it was a Java Null pointer or something. You can safely ignore the message and just check that the configuration worked when you go back into the Debug monitor. Good luck!
Although this question has been asked long before, I am answering for others who might stumble upon this trouble.
In Mars, eclipse 4.5 and linux using GTK 3, if Android Logcat display is missing, add the following in eclipse.ini before --launcher.appendVmargs
--launcher.GTK_version
2
May also refer these posts.
Logcat show invisible messages in Eclipse Mars
Eclipse GUI broken

Logcat data not displaying in the Log Tab of DDMS Eclipse

The log tab is visible in DDMS and I have been logging data using Log.v(...) for many a week now without any problems.
Today, the log data is now longer being displayed in the Log window. Worked, then did a programming change to track a bug and now the log data is no longer showing.
Have tried running the app on an external Android phone, on the Android Simulator and it makes no difference.
Have closed down Eclipse, reloaded and still no change.
The console displays activity but only to the point of starting the activity.
The external phone is set up for debugging - not that this could be a problem since I have the same problem with the simulator
It looks like I have inadvertantly set something incorrectly but can't remember changing anything :-(
Anyone come across this problem before - have looked at previous posts but none seem relevant.
Regards,
Oliver
I had the same problem a while back. I was using the emulator and device for debugging. Apparently you have to select the device listed in the DDMS view whose logs you want to see. My logs were blank because the device that I was expecting logs from was not the one selected.
Hope that helps
Tried this:
https://stackoverflow.com/a/9826502/1238317
Check in your logcat window - TOP RIGHT corner PAUSE button || (Pause
receiving new logcat messages)
Few clicks + eventually restart eclipse (usually works in my case)
Check your LogCat window to see if you are filtering and make sure to set the debug level to Verbose.
There are possible reasons and solutions:
LogCat might have to much in cache, clear the log and see if it fixed the issue
You might need to select the device in the device view (even if it is already selected, try to click on it)
adb is not correctly working anymore, try to kill and start it again
Check if you see output if you use the command line adb logcat
Just go to DDMS perspective and click on the device's name in upper left corner and done your log cat will Start with a BOOm :P
In Android Studio, which I have found to be much more reliable and intuitive than Eclipse, I found this to be a common issue. For me what solves it (device is automatically set when running your app) besides checking code, is to Quit and restart the emulator or Quit Android Studio and Emulator and reopen/restart

Nooby Android Developer

so I just recently (yesterday) started developing on the Android platform. So far I have created a Hello World application as described in their tutorial, but it does not run. When I run it, it waits at the blinky Android screen, then finally moves to the screen where it says Android in a fancy font and its kind of glossy and silver but never moves from there. What have I done wrong? Thank you.
That just sounds like the Android emulator isn't starting properly.
If you run adb logcat from the command line, or open "LogCat" view in Eclipse, do you see any messages appearing? You may have to select the "emulator-5554" device first from the "Devices" tab first.
Try exiting the emulator and eclipse both, and then restarting eclipse and running the project once again. This worked for me.

Categories

Resources