Re: How to debug in xcode a ROOT-level executables?
Re: How to debug in xcode a ROOT-level executables?
- Subject: Re: How to debug in xcode a ROOT-level executables?
- From: Paul Forgey <email@hidden>
- Date: Mon, 8 Jan 2007 13:53:51 -0800
On Jan 8, 2007, at 7:48 AM, Justin C. Walker wrote:
On Jan 8, 2007, at 06:21 , Ruslan Zasukhin wrote:
I try debug PHP module made with xcode.
[snip]
So question is:
does exists way run debugging process like a ROOT user ?
Yup. There are a couple of ways, all requiring root access.
1. Use gdb in a Terminal window, instead of Xcode, and the 'sudo'
command:
sudo gdb /usr/sbin/httpd
2. Log in as root and then run Xcode (or use gdb in a Terminal
window). This
requires enabling the 'root' account.
I don't think that running Xcode via 'sudo' will work:
sudo open /Developer/Applications/Xcode.app
You could also try making a copy (or hard link) of gdb to your home
directory. Set permissions 04550, owner root, group admin on it.
Specify it for your alternate debugger path. This is sort of
dangerous because if you aren't careful with the execute permissions
on that file, anybody could run gdb (and thus do anything) as root.
I haven't actually tried this but it might work.
_______________________________________________
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