Re: Detecting if you're being debugged
Re: Detecting if you're being debugged
- Subject: Re: Detecting if you're being debugged
- From: Michael Ash <email@hidden>
- Date: Fri, 19 Mar 2010 12:00:26 -0400
On Thu, Mar 18, 2010 at 8:14 AM, Jeremy Pereira <email@hidden> wrote:
>
> On 18 Mar 2010, at 11:48, Peter Hudson wrote:
>
>> Technical Q&A QA1361
>> Detecting the Debugger
>>
>> Does this code report on my app being debugged by any third party, even when the app has been stripped of symbols ?
>> Would it work irrespective of the debugging tool used ?
>
> Did you read the warning at the bottom of the page?
>
> http://developer.apple.com/mac/library/qa/qa2004/qa1361.html
>
> "IMPORTANT: Because the definition of the kinfo_proc structure (in <sys/sysctl.h>) is conditionalized by__APPLE_API_UNSTABLE, you should restrict use of the above code to the debug build of your program."
>
> This suggests you should not put the example code in the release builds of your program.
However, if you actually check the header (at least in the 10.6 SDK),
you won't find that flag. Seeing as how the technote is over five
years old, that structure probably got moved to stable at some point
in the intervening time.
Mike
_______________________________________________
Cocoa-dev mailing list (email@hidden)
Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden