How can I see long texts/msg in logcat?

后端 未结 5 1266
谎友^
谎友^ 2021-02-05 07:44

Since we are using logcat as a console for android. There are cases when the the output text/msg is kinda big and I can\'t see the complete output. The log cat shows only the st

5条回答
  •  无人及你
    2021-02-05 08:13

    I never use the GUI to view logcat output, so I'm not sure where/whether there are scrollbars in the DDMS/Eclipse UI.

    Anyway, you can use logcat from the command line — there are loads of options.

    To watch the log of an active device continually: adb logcat
    To dump the whole log: adb logcat -d
    To dump the whole log to a file: adb logcat -d > log.txt
    To filter and display a particular log tag: adb logcat -s MyLogTag

    ...and much more!

提交回复
热议问题