[wpe-webkit] Javascript console with Cog and WPE WebKit

Enrique Ocaña González eocanha at igalia.com
Tue Aug 27 04:54:17 PDT 2019


El martes, 27 de agosto de 2019 13:30:01 (CEST) Andy Pont escribió:

> I have an i.MX6 Yocto build that is running Cog and WPE WebKit to
> provide the front end UI.  I don't seem to be able to find how to enable
> or where the console.log() messages in any Javascript gets output.  Can
> anyone point me in the right direction?

I'm sure somebody will answer this thread with the right way to do it, but if 
that's not the case and you still need to get the console logs no matter what, 
just try this small hack I use sometimes when doing local debugging:

Change this line of code

https://github.com/WebKit/webkit/blob/master/Source/WebKit/UIProcess/API/C/
WKPreferences.cpp#L1225

so it remains as:

 toImpl(preferencesRef)->setLogsPageMessagesToSystemConsoleEnabled(true);

I hope it works for you and you find it useful.

-- 
Enrique Ocaña




More information about the webkit-wpe mailing list