[webkit-dev] Easing printf based debugging in WebKit with an helper.

Tony Chang tony at chromium.org
Thu Jul 19 12:03:01 PDT 2012


On Thu, Jul 19, 2012 at 11:35 AM, Oliver Buchtala <
oliver.buchtala at googlemail.com> wrote:

> On 19.07.2012 20:26, Maciej Stachowiak wrote:
>
>> On Jul 19, 2012, at 11:01 AM, Oliver Buchtala <
>> oliver.buchtala at googlemail.**com <oliver.buchtala at googlemail.com>> wrote:
>> FWIW, there is a gdb python API for changing the behavior... so called
>> pretty printers.
>>
>>> It is not too difficult to write such pretty-printers.
>>>
>>> Maybe providing a set of useful pretty-printers is a better approach
>>> than providing a set of debug functions?
>>>
>> I would love to see a set of useful pretty printers that we could share.
>> Do you have any we could use as a starting point?
>>
>>
>>  I have written some for other projects... not yet for webkit.
>
> Brady noted that there are some of them around?
> I could provide some pretty-printers, if necessary...
>

There are some already in WebKit/Tools/gdb/webkit.py.  It already includes
formatters for WTF::String, WTF::CString and more.  Feel free to add more
to it.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.webkit.org/pipermail/webkit-dev/attachments/20120719/c28a35c9/attachment.html>


More information about the webkit-dev mailing list