XCode debug external process
XCode debug external process
- Subject: XCode debug external process
- From: Roland King <email@hidden>
- Date: Wed, 21 Dec 2016 05:46:40 +0800
I have an executable not built with Xcode (but with make) I wanted to quickly debug a piece of. LLDB on the command line works but I’m not great with the commands for LLDB and GDB stopped working in Sierra unless you patch it, sign it and run it in a mode which leaves dead shells behind. So I wanted to use Xcode to debug it graphically.
I remembered Xcode can debug external processs so I found the menu Debug->Attach To Process By PID Or Name …, added the executable name and Xcode duly waited. I launched from the command line and the code just ran to completion. Xcode did stop waiting but didn’t attach and the sole message in the debug log was
Message from debugger: unable to attach
I can debug if I use the ‘debug as root’ option, after authenticating, but that most certainly shouldn’t be necessary for a non-root process running as me in a shell running as me on a machine logged in as me.
How can I fix this? Xcode is a useful graphical front-end to lldb and it’s handy to be able to use it. I suspect there’s some keychain or other authentication level now needed for lldb to be allowed to debug, but Xcode isn’t asking for it.
_______________________________________________
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