开发者

Prevent strace from abbreviating arguments?

I'm trying to use strace to find out what commands a program executes using execve. Some of the arguments in these commands are quite long, and strace is abbreviating the arguments to execve (I see "..." after about 30 characters), preventing me from getting any useful information. How can I get the full text of each argument?

I've read the man page. The -v option prints the environment, which is useful, but the arguments are still truncated.

strace -f -e trac开发者_高级运维e=execve -v -p 1234

I also tried passing verbose=all, but this just gives some extra information about SIGCHLD.

strace -f -e verbose=all trace=execve -v -p 1234


You want the -v -s strsize option, which specifies the maximum length of a string to display (the default is 32).

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜