Re: Cannot set breakpoint in category
Re: Cannot set breakpoint in category
- Subject: Re: Cannot set breakpoint in category
- From: Graham Perks <email@hidden>
- Date: Fri, 1 Jun 2007 07:35:01 -0500
Thanks, James.
I tried with Zerolink off and on, both cases exhibit the same issue.
I know that the category is being loaded, because I can debug into
the category (having set a breakpoint outside the category) and then
step through the category code line by line. But if I set a
breakpoint a couple of lines down from where I am, it is ignored.
Bizarre.
I'll have to create a small test case and hit bugreporter with it.
It's very frustrating. I ended up copying all my code out of the
category into the main class just to debug it!
Thanks,
Graham Perks.
http://www.asinglepixel.com
On May 21, 2007, at 10:00 AM, James Bucanek wrote:
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.
_______________________________________________
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