I want to debug a program which makes a simple network connection.
Is there any command which will print the network activity of a command, something that will show me (e.g. in a hexdump) what is being sent & received. strace -e trace=%network COMMAND
is 90% of the solution, that shows the raw network bytes.
But the formatting is subpar, it includes lots of extra information, and the formatting isn't as easy to read.
It's an active server, so I don't want to tcpdump
all network activity, just this one command. I want this printed on the terminal (like strace
), rather than having too many commands.
Server is Ubuntu Linux 18.04.