Reputation: 1489
According to the official doc, typing adb logcat *:S ReactNative:V ReactNativeJS:V
in the terminal will display all the Android Logs, however when I do so I get the following error message: no matches found: *:S
. I have put Log statements in my custom native modules like so :
Log.e(TAG, "Unsupported media type:" + type);
.I searched for this problem online and found no solution(No one has had the same error as me, apparently).
I would like to add that the code is working fine.
Upvotes: 16
Views: 8400
Reputation: 681
Useful to debug native errors (when the app won't even start)
adb logcat "*:E"
Useful to debug JS code errors
adb logcat "*:S" ReactNative:V ReactNativeJS:V
Upvotes: 0
Reputation: 711
I am assuming that you are using zsh for the terminal. Try using it like this
adb logcat '*:S' ReactNative:V ReactNativeJS:V
Hope this will help.
Upvotes: 12
Reputation: 19
Try using:
adb logcat -d
-d Dump the error log on the screen Instead of using the adb logcat which displays everything on the screen,things you need and things you don't need
Source: https://developer.android.com/studio/command-line/logcat.html
Upvotes: -2
Reputation: 926
Try using:
adb logcat -s ReactNative:V ReactNativeJS:V
Source: https://developer.android.com/studio/command-line/logcat.html
Upvotes: 18