skip to Main Content

I’m attempting to debug a thrown exception, but I’m not receiving log messages. In my console, the only message I receive is when my emulator connects or disconnects. What’s odd to me is, after some error, my app stays open and usable. Though what ever changes that were involved in the error aren’t completed. Even when I call assert false, my app stays usable. These problems started when I updated to Android Studio Hedgehog.

I’ve tried invalidating my caches, cold-booting, a new device, and enabling "show logcat automatically".

I’m not familiar with logcat, but I tried using it’s window instead. However, it was not useful since it only shows the exceptions you’ve explicitly logged. I’ve read that google or firebase analytics may interfere with logging, but I’m only using firebase and I disabled it.

2

Answers


  1. Chosen as BEST ANSWER

    I did not fix my issues with the console, but I was able to get logcat to work instead. It turns out, I was "submitting" my tasks to an ExecutorService instead of "executing" them. The former, wraps exceptions the results in a Future object, so I was not seeing them in my logs.


  2. android-studio-write-and-view-logs-with-logcat

    This article might help you in using logcat more efficiently, and check the logcat filter make sure you do not have a filter applied that might be excluding the message you are looking for and provide more information like how are you printing your log statements ?

    Login or Signup to reply.
Please signup or login to give your own answer.
Back To Top
Search