Skip to content
Ricky Zhang edited this page Nov 23, 2013 · 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, in SocksProxy_Prefix.pch undefined USE_NSLOGGER_LIB. If you want to use NSLogger, define USE_NSLOGGER_LIB.


How to see and filter log remotely?

Since V1.1, logging system added NSLogger. It provides a nice GUI to debug remotely, which doesn't requires hardwire connection to mac. Clone repo from https://github.com/fpillet/NSLogger.git and build 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.

Clone this wiki locally