stderr to Xcode console when attaching (Wait for next launch)
stderr to Xcode console when attaching (Wait for next launch)
- Subject: stderr to Xcode console when attaching (Wait for next launch)
- From: "Lars C. Hassing" <email@hidden>
- Date: Thu, 9 Dec 2010 14:24:38 +0100
- Acceptlanguage: da-DK
- Thread-topic: stderr to Xcode console when attaching (Wait for next launch)
I use the very nice feature "Wait for next/launch/push notification",
but text that was supposed to go to stderr doesn't show up in the Console window.
I ask Google and find in TN2124 "Mac OS X Debugging Magic":
http://developer.apple.com/library/mac/#technotes/tn2004/tn2124.html
"Attaching to a running program (using Xcode's Attach to Process menu,
or the attach command in GDB) does not automatically connect the
program's stderr to your GDB window. You can do this from within GDB
using the trick described in the "Seeing stdout and stderr After
Attaching" section of Technical Note TN2030, 'GDB for MacsBug Veterans'."
And yes, in
http://developer.apple.com/library/mac/technotes/tn/tn2030.html#Section3
there is a trick to redirect stdout and stderr to a terminal,
but I want them redirected to my Xcode console...
Is there any way to do that ?
The Debugging tab in "Edit Active Executable" already has a
"Use NNN for standard input/output" popup.
I need a sub-checkbox below "Wait for next/launch/push notification"
saying "Redirect standard input/output to device above.
/Lars
Xcode 3.1.4 MacOSX 10.5.8 debugging a .app bundle _______________________________________________
Do not post admin requests to the list. They will be ignored.
Xcode-users mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden