Debug tips - hewigovens/hewigovens.github.com GitHub Wiki
###Debug Framework:
- Build debug version framework.
- Set DYLD_FRAMEWORK_PATH in Xcode->Executable Info->Arguments.
###Debug dylib:
- Build debug version dylib
otool -L *.app/Contents/MacOS/Test
-
ln -s
target debug dylib to what otool output - Set DYLD_LIBRARY_PATH in Xcode->Executable Info->Arguments.
###Debug network:
sudo defaults write /Library/Preferences/com.apple.networkd libnetcore_log_level -int 7
syslog -w
- tcpdump/tcptrace
-
rvictl -s <UUID>
#remote packet capture
###Reference
-
man dyld or dyld(1) OS X Manual Page
DYLD_FRAMEWORK_PATH DYLD_FALLBACK_FRAMEWORK_PATH DYLD_VERSIONED_FRAMEWORK_PATH DYLD_LIBRARY_PATH DYLD_FALLBACK_LIBRARY_PATH DYLD_VERSIONED_LIBRARY_PATH