3 ms·
Here is a good way I've found to debug network based code: Step 1: write shell scripts to capture certain kinds of network traffic with tcpdump and output a pc
by anaphor 13y ago
Here is a good way I've found to debug network based code:
Step 1: write shell scripts to capture certain kinds of network traffic with tcpdump and output a pcap file (e.g. have a certain function to capture HTTP traffic of a certain kind)
Step 2: open with wireshark and split screen with source code
I'm sure wireshark has a nice way of doing step 1 but I prefer the workflow of typing "foocap example.org" and then looking at the results in wireshark.