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

⚠️ **GitHub.com Fallback** ⚠️