Redirect the debug output from the XCode 4 console to redirect to the log file

I’m doing automated testing for the iPhone, and I need to redirect the output from gdb to a log file. Before I start debugging, some online searches show that the following two lines are running on the command line:

defaults write com.apple.Xcode PBXGDBDebuggerLogToFile YES
defaults write com.apple.Xcode PBXGDBDebuggerLogFileName

…but they It doesn’t seem to work for me. I have encountered some problems before, and the features of the earlier version of Xcode disappeared in the new version (I am using XCode 4.0.2). Is this the case or is it more likely that I am doing something wrong What’s up?

Is there another way to tell XCode to send the output to the log file? Please note that I need to be able to do this from the command line or AppleScript; I cannot add anything to the code of the running program.

The domain name of Xcode 4.0 is com.apple.dt.Xcode. In addition, in Xcode 4.0, you should use fol defaults write com.apple.dt.Xcode IDEGDBLogToFile /tmp/logs.txt

I am doing automated testing for the iPhone, and I need to redirect the output from gdb to a log file. Before starting debugging, some online searches showed that the following two lines are running on the command line:

< /p>

defaults write com.apple.Xcode PBXGDBDebuggerLogToFile YES
defaults write com.apple.Xcode PBXGDBDebuggerLogFileName

…but they seem to be right I don’t work. I have encountered some problems before, and the features of the earlier version of Xcode disappeared in the new version (I am using XCode 4.0.2). Is this the case or is it more likely that I am doing something wrong ?

Is there another way to tell XCode to send the output to the log file? Please note that I need to be able to do this from the command line or AppleScript; I cannot add anything to the code of the running program.

Xcode 4.0 The domain name is com.apple.dt.Xcode. Also, in Xcode 4.0, you should use fol defaults write com.apple.dt.Xcode IDEGDBLogToFile /tmp/logs.txt

Leave a Comment

Your email address will not be published.