Pastebin launched a little side project called VERYVIRAL.com, check it out ;-) Want more features on Pastebin? Sign Up, it's FREE!
Guest

Redirecting debug output from XCode 4 console to a log file

By: a guest on Apr 9th, 2012  |  syntax: None  |  size: 0.36 KB  |  views: 751  |  expires: Never
download  |  raw  |  embed  |  report abuse  |  print
Text below is selected. Please press Ctrl+C to copy to your clipboard. (⌘+C on Mac)
  1. defaults write com.apple.Xcode PBXGDBDebuggerLogToFile YES
  2. defaults write com.apple.Xcode PBXGDBDebuggerLogFileName <filepath>
  3.        
  4. /Developer/Platforms/iPhoneOS.platform/Developer/usr/libexec/gdb/gdb-arm-apple-darwin
  5.        
  6. #!/bin/sh
  7.  
  8. /Developer/Platforms/iPhoneOS.platform/Developer/usr/libexec/gdb/gdb-arm-apple-darwin- $* | tee -a $HOME/tmp/xcode-gdb.log 2>&1