-
Notifications
You must be signed in to change notification settings - Fork 87
Debugging
Ricky Zhang edited this page Nov 23, 2013
·
3 revisions
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.
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.
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.