[webkit-dev] Made a debug build of WebKit.Framework. GDB ignores breakpoints?
rsherry at adobe.com
Thu Nov 19 07:24:35 PST 2009
Before starting to debug, see the menu item Debug->Show-
See that the default for "User Libraries" is "Default (External)".
That means that anything that is NOT being built by your project (i.e.
the WebCore framework), when it gets loaded, will only load exported
symbols. You're not hitting the breakpoints because it's not loading
the symbols for WebCore so can't resolve the breakpoints.
In Preferences->Debugging, turn OFF "Load symbols lazily" and that
should allow you to debug without keeping the WebCore library open.
Don't know if you have to quit Xcode and relaunch in order to make
that stick, you might have to.
On Nov 19, 2009, at 7:07 AM, Eddy Bruël wrote:
> Problem solved. If I keep the XCode project for WebCore open whilst
> debugging my own application, breakpoints suddenly work.
> On Thu, Nov 19, 2009 at 3:40 PM, Eddy Bruël <ejpbruel at gmail.com>
> ---------- Forwarded message ----------
> From: Eddy Bruël <ejpbruel at gmail.com>
> Date: Thu, Nov 19, 2009 at 3:40 PM
> Subject: Re: [webkit-dev] Made a debug build of WebKit.Framework.
> GDB ignores breakpoints?
> To: Alexey Proskuryakov <ap at webkit.org>
> I have now. I built my application against the WebKit Framework that
> came with OS X,
> then tried setting as custom executable in the WebCore project.
> Running it starts my
> project, alright, but any breakpoints I set in Webcore source files
> are still merrily
> ignored by GDB. What's going on?
> On Wed, Nov 18, 2009 at 7:22 PM, Alexey Proskuryakov <ap at webkit.org>
> 18.11.2009, в 9:06, Eddy Bruël написал(а):
> I've checked out the most recent WebKit sources, and made a debug
> build. I then linked my
> program against the resulting WebKit.Framework, and used the headers
> in the corresponding
> WebKit.Framework/Headers directory
> Did you try the steps in <http://webkit.org/building/debug.html>?
> There is no need to rebuild your application against a local WebKit
> - WBR, Alexey Proskuryakov
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the webkit-dev