Debugging some of the content of the network, always avoid the need to catch the package, tcpdump is a very suitable tool, this tool can be installed on the server, all the content you need to grasp down, but after the capture it? We also need a tool that can read this package, which is the Wireshark to be introduced.
Wireshark is an open source tool, and powerful, easy to use, but under the Mac must have X11 to run, directly installed DMG is not able to run. Now the Mac operating system is not preinstalled X11, this need to manually install a tool called Xquartz, this tool can be downloaded here.
After installing the Xquartz, you can see X11.app under the utilities under Application. When you start Wireshark, a box pops up to ask which app to start X11, and you need to select application/utilities/ X11.app, then the corresponding service will be started, this will take a little time, and then Wireshark started, the following screen appears:
Installation of Wireshark under Mac