• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: Cannot set breakpoint in category
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Cannot set breakpoint in category


  • Subject: Re: Cannot set breakpoint in category
  • From: Jim Ingham <email@hidden>
  • Date: Fri, 1 Jun 2007 10:59:17 -0700

If you can make a test case for this, that would be great. The only bug I have about breakpoints in categories concerns spurious warnings on rerunning if you've set the breakpoint by symbol name (if you click to set the breakpoint in the Source view in Xcode, it will set it by file & line - I have no bugs about problems setting file & line breakpoints in categories.)

If you do file a bug, can you also generate the Xcode-gdb log for a session showing the problem, and send that along with the bug. You do that by going to Terminal and doing:

$ defaults write com.apple.Xcode PBXGDBDebuggerLogToFile YES
$ defaults write com.apple.Xcode PBXGDBDebuggerLogFileName /tmp/ XCGDB.log


then restart Xcode, run the session, and then include /tmp/XCGDB.log with the bug.

Thanks.

Jim

On Jun 1, 2007, at 5:35 AM, Graham Perks wrote:

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

_______________________________________________ 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
  • Follow-Ups:
    • Re: Cannot set breakpoint in category
      • From: Graham Perks <email@hidden>
References: 
 >Re: Cannot set breakpoint in category (From: Graham Perks <email@hidden>)

  • Prev by Date: Re: a c++ error, resolved, for now
  • Next by Date: Re: merging multiple Xcode projects
  • Previous by thread: Re: Cannot set breakpoint in category
  • Next by thread: Re: Cannot set breakpoint in category
  • Index(es):
    • Date
    • Thread