Android studio maximum number of lines logcat

前端 未结 5 1655
萌比男神i
萌比男神i 2020-12-09 04:00

I\'m testing with a real device connected to Android Studio. Because of multithreading behavior that I don\'t want to interrupt I\'ve added lots of log statements to my code

5条回答
  •  予麋鹿
    予麋鹿 (楼主)
    2020-12-09 04:27

    You could start the logcat in a terminal: developer.android.com/tools/help/adb.html#logcat

    [adb] logcat [option] ... [filter-spec] ... 
    

    and pipe it to a txt file

    win

    PATH\TO\YOUR\ADB\ adb.exe logcat > log.txt
    

    or

    linux

    PATH\TO\YOUR\ADB\ adb logcat| tee log.txt 
    

提交回复
热议问题