奇怪的是,我找不到任何地方,但是当我stdout strace输出到afile像这样:
strace foo.exe | & tee foo.log
输出是短路,我怎么能使宽度更长?
Linux下的“-s”选项可以用“strace”包来指定宽度:
-s strsize Specify the maximum string size to print (the default is 32). Note that filenames are not consid- ered strings and are always printed in full.
使用'-o文件名'选项:
strace -f -o foo.log foo
男子strace
-o filename将跟踪输出写入文件的文件名