Sunday, May 5, 2024
10
rated 0 times [  10] [ 0]  / answers: 1 / hits: 41719  / 2 Years ago, fri, april 8, 2022, 6:43:37

I'm trying to do some debugging in Android and I am running a live logcat in the Terminal, but the problem is that there is too much information generated so that when I am finished and try to copy all the information received by choosing "Select All" and then "Copy" a lot of the early output which is produced isn't copied. I was aware of history, but that just provides a list of commands that have previously been entered, not the output.



Can I see a history of all the output that the terminal gives, or perhaps can I have the terminal save as a text file all the output that it is producing?


More From » command-line

 Answers
7

You can append all logs to a text file by redirecting output. But this requires each command is executed like this (this will catch both stdout & stderr)



command >>file.txt 2>&1


OR



You can record screencasts of terminal, since it stores screencast in text file, you can use that. Its called shelr



Files are stored in ~/.local/share/shelr/



Source: http://www.omgubuntu.co.uk/2012/04/how-to-record-and-share-terminal-screencasts-quickly/



Note: I have no idea of android development.This answer is based on shell scripting.


[#38451] Saturday, April 9, 2022, 2 Years  [reply] [flag answer]
Only authorized users can answer the question. Please sign in first, or register a free account.
ellter

Total Points: 311
Total Questions: 111
Total Answers: 117

Location: Lithuania
Member since Thu, Jul 14, 2022
2 Years ago
;