-
Notifications
You must be signed in to change notification settings - Fork 87
Debugging
Ricky Zhang edited this page Jun 19, 2022
·
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
, modify SocksProxy_Prefix.pch
and undefine the macro USE_NSLOGGER_LIB
. If you want to use NSLogger
, define USE_NSLOGGER_LIB
.
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.
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.