[wpe-webkit] Javascript console with Cog and WPE WebKit
Tobias Grasse | glancr
tg at glancr.de
Tue Aug 27 05:00:16 PDT 2019
Hi everyone,
I’m using cog 0.3.1 with WPE 2.24.2. When you start cog with --enable-write-console-messages-to-stdout=1 , JS log messages should appear in your STDOUT. I don’t know where your Yocto build logs the cog process output, but at least it now contains JS messages :-)
best
Tobias
> Am 27.08.2019 um 13:54 schrieb Enrique Ocaña González <eocanha at igalia.com>:
>
> 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
>
>
> _______________________________________________
> Do not post admin requests to the list. They will be ignored.
> webkit-wpe mailing list (webkit-wpe at lists.webkit.org)
> Help/Unsubscribe/Update your Subscription:
> https://lists.webkit.org/mailman//listinfo/webkit-wpe
More information about the webkit-wpe
mailing list