Closed chriso closed 1 year ago
To keep output reasonable when a program does large reads and writes, the tracer truncates strings after 32 bytes. This PR makes the truncation point configurable via a --tracer-string-size command-line option.
--tracer-string-size
Example:
$ wasirun --trace hello.wasm ... FDWrite(1, [1]IOVec{[14]byte("Hello, World!\n")}) => 14 ... $ wasirun --trace --tracer-string-size 5 hello.wasm ... FDWrite(1, [1]IOVec{[14]byte("Hello"...)}) => 14 ...
This is like strace's -s, --strsize option.
-s, --strsize
To keep output reasonable when a program does large reads and writes, the tracer truncates strings after 32 bytes. This PR makes the truncation point configurable via a
--tracer-string-size
command-line option.Example:
This is like strace's
-s, --strsize
option.