0

With the One Plus 5 I don't get any stacktraces in logcat. Same mac same project with the nexus 6 I get them. This is happening on multiple projects so I guess this is a device issue but there seems nothing wrong with it.

Rene Gens
  • 480
  • 6
  • 18
  • Well it's a new phone, I suppose anything is possible. Are there workarounds you can use in place of logcat? – Tim Biegeleisen Jul 25 '17 at 12:13
  • I just tried with my OnePlus 5 and I have logcat as expected. Using latest Canary version of AS. – Micer Jul 25 '17 at 12:18
  • Are you sure you havent applied a filter. Make sure you have selected the correct device in the android monitor (top left), as well as the correct app. – IAmGroot Jul 25 '17 at 12:18
  • I have oneplus 5 device and just check, I am able to get stacktrace as expected in logcat. – Hari Ram Jul 25 '17 at 12:28
  • I checked the obvious steps, eg I am working on an app and it crashed. With the one plus 5 plugged in no stacktrace. Same crash just with the nexus 6 I get one in logcat. Yes I have double checked filters. My AS version is 2.4 – Rene Gens Jul 25 '17 at 12:31
  • Have you installed ADB drivers for the device ? Is your device visible in Android Monitor ? – Sudarshan Vidhate Jul 25 '17 at 13:52

1 Answers1

0

As it has been answered on a similar question this is due to the fact that you are viewing the LogCat for the selected process. So naturally when the process dies you get no logs.

You can instead create a filter based on your package name and you can keep getting logs after your application crashes.

Chris Margonis
  • 935
  • 11
  • 16