[wpe-webkit] Developer extras

Adrian Perez de Castro aperez at igalia.com
Mon Oct 28 14:27:07 PDT 2019


Hi Andy,

On Mon, 28 Oct 2019 10:57:34 +0000, Andy Pont <andy.pont at sdcsystems.com> wrote:
 
> If I start Cog with the --enable-developer-extras=true command line 
> option which presumably gets passed to the WPE WebKit backend how do I 
> access the developer features remotely as my target device only has a 
> screen and no local mouse/keyboard.

The development inspector is accessed remotely over the network [1]. On top of
passing the flag, you need to define the “WEBKIT_INSPECTOR_SERVER” environment
variable before running Cog to configure the interface and port where the
service will listen for connections. For example, to make it listen on all
the available network interfaces, use:

  WEBKIT_INSPECTOR_SERVER=0.0.0.0:12345 cog --enable-developer-extras=true <…>

Then you will be able to use a WebKitGTK-based browser (like GNOME Web [2])
from a laptop or a desktop computer using an URL with the “inspector://”
scheme, using the IP address of your device:

  epiphany inspector://192.168.0.100:12345

This will open a window with a list of the web views which can be inspected
(currently only one, because Cog does not have support for more at the
moment).

I hope this helps :-)

—Adrián

---
[1] https://blogs.igalia.com/carlosgc/2017/05/03/webkitgtk-remote-debugging-in-2-18/
[2] https://wiki.gnome.org/Apps/Web
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 195 bytes
Desc: not available
URL: <http://lists.webkit.org/pipermail/webkit-wpe/attachments/20191028/3bfde4f3/attachment.bin>


More information about the webkit-wpe mailing list