• 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: Breakpoints not working
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Breakpoints not working


  • Subject: Re: Breakpoints not working
  • From: Jim Ingham <email@hidden>
  • Date: Fri, 27 Feb 2004 11:26:27 -0800

Jim,


On Feb 26, 2004, at 6:20 PM, James J. Merkel wrote:

I know that questions have been asked in the past about breakpoints not working in xcode -- however I still cannot get the debugger to stop at any breakpoints. I am in development mode with the option set to Generate Debug Symbols. I can see the breakpoint in the breakpoint window. Still no effect.

If you interrupt the program once it is up and running and go to the console and type:


(gdb) info break

do the breakpoints have reasonable seeming addresses. If the addresses are all 0x0, then that means we couldn't resolve the symbols. If there are addresses, but you are not hitting them, then something went wrong in setting the breakpoints? I would have to have a look at the binary to see what was going wrong in this case.


I tried using the console window to manually set the breakpoint in gdb. However, the debugger doesn't recognize any file name that I enter.

If you are using ZeroLink, that is expected behavior. With ZeroLink, all your app code is in shared libraries that are loaded by dyld into your executable as needed. Since they aren't directly linked to the main executable stub, the debugger doesn't know about them until they are actually loaded. There is another command in gdb: future-break (fb for short) that you can use to set a breakpoint in code that hasn't yet been loaded.


Jim
--
Jim Ingham                                   email@hidden
Developer Tools
Apple Computer
_______________________________________________
xcode-users mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/xcode-users
Do not post admin requests to the list. They will be ignored.


References: 
 >Breakpoints not working (From: "James J. Merkel" <email@hidden>)

  • Prev by Date: Re: .pbproj file format
  • Next by Date: Re: gcc project, Xcode builds it, terminal doesn't
  • Previous by thread: Re: Breakpoints not working
  • Next by thread: Re: Breakpoints not working
  • Index(es):
    • Date
    • Thread