title: Log XCode gdb output to file with .gdbinit
body: <p>I'm try to redirect gdb output from XCode to a log file for automated testing. I've automated the process of running an app for testing using AppleScript, but I need to be able to see the output. I've tried using the .gdbinit file with</p>
  
  <pre><code>set logging file &lt;filepath&gt;
  set logging overwrite on
  set logging on
  </code></pre>
  
  <p>but I get “warning: Current output protocol does not support redirection” in my log file. A bit of searching for this error message didn't turn up much, besides a mention of a problem with "TUI-mode." If this is the problem, how do I turn off TUI-mode in XCode? If not, what is causing that warning?</p>