Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

WEBKIT_INSPECTOR_SERVER - Unable to access #292

Open
Escalion opened this issue Mar 26, 2021 · 3 comments
Open

WEBKIT_INSPECTOR_SERVER - Unable to access #292

Escalion opened this issue Mar 26, 2021 · 3 comments
Labels
question The issue is a question from the reporter

Comments

@Escalion
Copy link

Escalion commented Mar 26, 2021

We have built an image based on poky dunfell with wayland, weston & cog on 64 bit raspberry pi 4.

DISTRO_FEATURES_append = " wayland"
PREFERRED_PROVIDER_virtual/wpebackend = "wpebackend-fdo"
PACKAGECONFIG_append_pn-cairo = " glesv2"
PACKAGECONFIG_remove_pn-cairo = "opengl"
PACKAGECONFIG_append_pn-wpewebkit = " 2dcanvas remote-inspector"
IMAGE_INSTALL_append += " weston wayland wpebackend-fdo wpewebkit cog wpewebkit-web-inspector-plugin"

I am launching cog as follows;

export XDG_RUNTIME_DIR=/run/user/0
export WAYLAND_DISPLAY=wayland-0
export COG_PLATFORM_FDO_VIEW_WIDTH=1920
export COG_PLATFORM_FDO_VIEW_HEIGHT=1200
export COG_PLATFORM_FDO_VIEW_FULLSCREEN=1
export WEBKIT_INSPECTOR_SERVER=0.0.0.0:9222
cog -P fdo http://example.com

Which, loads the URL and when checking with netstat, we can see that we are listening on port 9222.
Despite this, I am unable to access the inspector at all. Have I missed something here - any advice would be greatly appreciated.

@philn
Copy link
Member

philn commented Mar 26, 2021

The remote inspector can then be opened from the GNOME Browser using the inspector:// URL, iirc.

@Escalion
Copy link
Author

Hi philn - thanks, we did try that, but was unable to access the target.

@aperezdc
Copy link
Member

@Escalion You also need to pass the --enable-developer-extras=1 command line option to cog. This should work:

WEBKIT_INSPECTOR_SERVER=0.0.0.0:9222 cog -P fdo --enable-developer-extras=1 wpewebkit.org

@aperezdc aperezdc added the question The issue is a question from the reporter label Mar 29, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
question The issue is a question from the reporter
Projects
None yet
Development

No branches or pull requests

3 participants