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

Maciej Stachowiak mjs at apple.com
Thu Jul 19 11:26:03 PDT 2012


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

> 
> Hi,
> 
> I am probably one of those people who much dislike printf-debugging.
> What is your problem with using a debugger?
> 
> Maybe because the displayed information is not appropriate?
> E.g., you would like
>     someString.utf8().data()
> instead of
>     someString
> 
> 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?

Regards,
Maciej




More information about the webkit-dev mailing list