On windows (win7), debugging a real phone via USB I want to dump the logcat log into a file on my PC. The rate of data is beyond what is usable in eclipse; and I want the whole unfiltered log.
According to the logcat command line instructions this should be trivial with
logcat -f logfile.txt
I'm using adb logcat -f logfile.txt
on the windows command line
but this always responds with
couldn't open output file: Read-only file system
The file system is not read-only. Creating and writing files there works fine, and a crude redirection such as adb logcat > logfile.txt
also works as expected. Providing the whole path to the log file makes no difference.
I'd like to make use of logcat's -n
and -r
options but they require -f
to work.
Any suggestions?
Notes.
This question is close to one asked on Ubuntu but that has no answers that are useful to me on Windows, and one suggestion that I've already tried and doesn't work. Most similar references on SO simply quote the help page, saying -f filename
should work.
Question edited to keep it up to date with useful comments & responses.