Mailing Lists: Apple Mailing Lists

Image of Mac OS face in stamp
 
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Xcode 3 and launchd WaitForDebugger



I've got a launchd daemon that I'm trying to debug.  I have WaitForDebugger set to YES in my launchd plist file.  When the daemon is launched, I see the following output in the console:

10/29/07 2:58:48 PM com.apple.launchd[108] (com.foo.daemontest[3887]) Spawned and waiting for the debugger to attach before continuing... 

Then if try to attach to this process with Xcode, I get the following errors:

Attaching to program: `/Users/dustin/XcodeBuild/Debug/daemontest', process 3887.
Xcode: Introspection dylib not loaded because thread 1 has function: __dyld__dyld_start on stack
warning: Couldn't find minimal bounds for "_sigtramp" - backtraces may be unreliable
Cannot access memory at address 0xfeedfad2
Cannot access memory at address 0xfeedfad2

Any attempts to step or continue the process result in this output:

Program received signal:  “EXC_BAD_ACCESS”.
Cannot access memory at address 0xfeedfad2
Cannot access memory at address 0xfeedfad2

I have been able to successfully attach using gdb via Terminal.  I have not tried this with Xcode 2.x.

Is this a supported operation with Xcode?  Are there any workarounds?

Thanks,
Dustin
 _______________________________________________
Do not post admin requests to the list. They will be ignored.
Xcode-users mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/xcode-users/email@hidden

This email sent to email@hidden



Visit the Apple Store online or at retail locations.
1-800-MY-APPLE

Contact Apple | Terms of Use | Privacy Policy

Copyright © 2007 Apple Inc. All rights reserved.