• 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: Also in ObjC... Re: blowing right by breakpoints
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Also in ObjC... Re: blowing right by breakpoints


  • Subject: Re: Also in ObjC... Re: blowing right by breakpoints
  • From: Nigel Perry <email@hidden>
  • Date: Tue, 10 Jan 2006 15:23:20 +1300

Title: Re: Also in ObjC... Re: blowing right by breakpoints
Hi Chris,

Thanks for the instructions. Tried all this and it still wasn't going, debugging a sample worked fine and a comparison of the two project settings showed no differences... I kept rebuilding, cleaning, deleting created files direct from the Finder (i.e. in the build directory), and finally it just started working :-)  I've no real idea what caused the glitch but I'm guessing the downloaded project I was compiling came from an earlier XCode and some little gremlin was in there somewhere.

Thanks,
        Nigel

At 13:24 -0800 9/1/06, Chris Friesen wrote:
If the breakpoints window shows a '-' in the enable/disable checkbox, while debugging, then the breakpoint is 'pending'. This means either A: compiler didn't generate symbols for that file/function so the debugger couldn't find a location for the breakpoint, B the debugger has not yet loaded the full debugging symbols or C the shared library/bundle that contains the code in question has not been loaded. Does the debugger stop at symbolic breakpoints? Can you debug any of the ObjC examples in /Developer/Examples/AppKit?

A. Make sure you are building with a build configuration that is generating debugging symbols. Check the target build settings and the detailed build log for ether '-g', '-gused' or '-gfull' is set when compiling the sources you are breaking on.

B. Try going to the shared libraries window via the menu Debug->Tools->Shared LIbraries... and changing the Default Level for User Libraries to 'All'. Start debugging.

C. If the addresss in the Shared Libraries window is non-zero then the module is loaded.

 If non of that resolves things then you need to file a Radar with the Xcode-gdb log.

Do the following in terminal then run Xcode, reproduce the problem and attach the log to your Radar:

defaults write com.apple.Xcode PBXGDBDebuggerLogFileName /tmp/XCGDBLog
defaults write com.apple.Xcode PBXGDBDebuggerLogToFile YES

-ChrisF

On Jan 9, 2006, at 11:07 AM, Nigel Perry wrote:

Hi All,

I've just installed Tiger & XCode and it isn't stopping at *any* breakpoints in the ObjC program (which I did not write, source download) I'm trying. Looking at the GDB window also I see is the "run" being issued. The breakpoints window shows the breakpoints. I thought I'd missed something really obvious, but maybe I'm not quite that thick given Bob's request (unless we're a pair ;-)). Anybody enlighten me as to how to get breakpoints to fire?

TIA,
        Nigel


--
Nigel Perry, New Zealand
 _______________________________________________
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

References: 
 >Also in ObjC... Re: blowing right by breakpoints (From: Nigel Perry <email@hidden>)
 >Re: Also in ObjC... Re: blowing right by breakpoints (From: Chris Friesen <email@hidden>)

  • Prev by Date: XCode and hosted Subversion
  • Next by Date: Re: XCode and hosted Subversion
  • Previous by thread: Re: Also in ObjC... Re: blowing right by breakpoints
  • Next by thread: Xcode ignores compiles changes, but debugs old code
  • Index(es):
    • Date
    • Thread