Re: Xcode 5 breakpoints are still spotty
Re: Xcode 5 breakpoints are still spotty
- Subject: Re: Xcode 5 breakpoints are still spotty
- From: Jason Molenda <email@hidden>
- Date: Mon, 18 Nov 2013 14:37:58 -0800
Steve,
If you can file a bug report at http://bugreport.apple.com/ with details about what you're seeing, that's usually the best way to for us to figure out what is going on. When your process is up & running, pause the app and in the debugger console window do
(lldb) breakpoint list
which will show all of the breakpoints that lldb is trying to set, and whether they've successfully set or not.
One change in Xcode 5 with lldb is that file and line breakpoints (e.g. clicking in the editor gutter to add a breakpoint) in a .c/.cpp/.m file that is *included* in another source file will not work by default. It's not a common coding practice and covering this case requires a performance hit in the debugger. For developers who use this pattern, they need to add a setting in their ~/.lldbinit file:
settings set target.inline-breakpoint-strategy always
After that, lldb will do an exhaustive search for these files when inserting breakpoints.
The other most common reason for a breakpoint not being set is that the source file was not built with debug information.
These are just general possibilities - if you could please file a bug report we'll drill down into the specifics of what is happening with your app.
Thanks
Jason
On Nov 18, 2013, at 2:05 PM, Steve Mills <email@hidden> wrote:
> I was hoping that since Apple got rid of gdb in Xcode 5 that it meant that all the bugs with lldb breakpoints had been fixed. I couldn't have been more wrong. Today I even had some breakpoints fail to do logging. C'mon! I don't suppose there's an easy way to let Xcode 5 use the gdb that's still installed for my Xcode 4 installation, is there?
>
> --
> Steve Mills
> office: 952-818-3871
> home: 952-401-6255
> cell: 612-803-6157
>
>
>
> _______________________________________________
> 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