Show complete arguments in strace even in curly brackets

前端 未结 4 1499
说谎
说谎 2021-02-02 10:18

I know the -s option should display longer arguments, but it doesn\'t work always (probably because of those curly brackets meaning array or nested arguments?).

4条回答
  •  难免孤独
    2021-02-02 10:57

    To verbosely describe what Vladimir Kunschikov said - run the following commands:

    1. git clone git://git.code.sf.net/p/strace/code strace-code
    2. cd strace-code
    3. Modify the part of defs.h file as described by Vladimir Kunschikov.
    4. ./bootstrap
    5. ./configure
    6. make
    7. make install

    The modified version of strace should have been installed in /usr/local/bin/strace. Now, run the strace using a large value for the -s option. Example:

    strace -s 65536 command_to_run_goes_here
    

    Sources:

    1. Vladimir Kunschikov's answer.
    2. https://github.com/strace/strace/issues/2

提交回复
热议问题