[webkit-dev] WebKit debugging on OSX and ~/.lldbinit

Sylvain Galineau galineau at adobe.com
Tue Feb 24 15:29:26 PST 2015

From: Simon Fraser
Date: Tuesday, February 24, 2015 at 3:19 PM
To: Adobe
Cc: "webkit-dev at lists.webkit.org"
Subject: Re: [webkit-dev] WebKit debugging on OSX and ~/.lldbinit

>On Feb 24, 2015, at 3:10 PM, Sylvain Galineau <galineau at adobe.com> wrote:
>> I’ve recently found myself in the following situation while debugging 
>> WebKit: the debugger (Xcode) would hit a breakpoint, I would place a 
>> breakpoint in a method up the current call stack, re-run my test and 
>> then…nothing. The new breakpoint would never be hit though the original 
>> one still was and I could still see that method on the call stack with 
>> breakpoint in it.
>> For instance, I would set a breakpoint in FontCascade::width(), see 
>> RenderSVGText::layout() on the call stack then set a breakpoint in the 
>> latter. I’d try my test again and never break into 
>> RenderSVGText::layout(). 
>> I verified I was using a debug build, rebuilt from scratch, tried 
>> command-line LLDB, stood on my head, no luck.
>> Until I added:
>> 	settings set target.inline-breakpoint-strategy always
>> in ~/.lldbinit.
>> I’m glad it works - yay breakpoints - but am not quite sure why this 
>> of magic is needed. Does anyone else use this/know why it helps?  
>This is a known issue (tracked internally as rdar://problem/16829492). 
>exacerbated by our “all in one” .cpp files (e.g. RenderSVGAllInOne.cpp) 
>are required to get around linking size issues iirc.

This definitely explains it, thanks!

I don’t mind writing up a small addition to webkit.org’s Debugging WebKit 
page. Does that work through the same bugzilla-patch upload process as 
everything else or can I just submit a PR at 

More information about the webkit-dev mailing list