Skip to content
Ricky Zhang edited this page Jun 19, 2022 · 3 revisions

How to enable log?

First, set build as DEBUG. This will define DEBUG macro variable by Xcode.

Go to Product-> Scheme-> Edit Scheme -> Run Tethering.app -> Build configuration. Change setting to DEBUG

Secondly, if you use NSLOG, modify SocksProxy_Prefix.pch and undefine the macro USE_NSLOGGER_LIB. If you want to use NSLogger, define USE_NSLOGGER_LIB.


How to see and filter log remotely?

Since release V1.1, the logging system added NSLogger. It provides a nice GUI in Mac OS to debug remotely, which doesn't requires hardwire connection to mac.

Clone repo from NSLogger and build its Mac GUI to explore log.


How to debug by external tools?

Any network packet sniffer in your PC/Mac should work. You can take a deep look in SOCKS handshake, DNS packet and etc. Personally, I prefer to use Wireshark in Mac OS X and Linux.