Re: Cannot set breakpoint in category
Re: Cannot set breakpoint in category
- Subject: Re: Cannot set breakpoint in category
- From: James Bucanek <email@hidden>
- Date: Mon, 21 May 2007 08:00:28 -0700
I can set a breakpoint in classes and in categories, however
XCode will only actually break on the breakpoints in the
non-category files.
The breakpoint marker is blue when editing - then the ones in category files turns yellow at launch.
A yellow breakpoint indicates that gdb can't resolve the
address. This is usually because the code for the category isn't
present at run-time. Make sure you're including the code for the
category in your project. (Since categories are inserted
dynamically, they don't cause any link errors so it's easy to
leave them out of the build then wonder why they aren't working.)
If that's not the problem, disable ZeroLink and see if that
improves anything. ZeroLink loads symbols on demand. The
debugger doesn't get the debugging information about a module
until it's loaded.
James Bucanek
____________________________________________________________________
Author of Beginning Xcode ISBN: 047175479X
<http://www.beginningxcode.com/>
_______________________________________________
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