Wallpaper Engine
Недостаточно оценок
Remote Debugging ( Web Wallpaper )
От Arthesian
This is a quick guide to help developers set up remote debugging using Google Chrome while developing Web-Wallpapers for Wallpaper Engine.
   
Наградить
В избранное
В избранном
Удалить
Introduction
This guide is intended to help developers while developing Web-Wallpapers for Wallpaper Engine. By using remote debugging, it is far more easier to debug complex javascript, instead of using 'alert("test")'.... Yes....we've all been there.

Setting up should only take a couple of minutes ( at most ). And after walking through this guide you should be able to use the Chrome Debug Tools for your wallpaper!
Settings
Open the Wallpaper Engine settings. ( by clicking on the 'cog' icon in the top right )

Go to the tab 'General'

Scroll down until you see 'CEF devtools port'. You can enter (almost) any number here, but remember a port can only be used once. Ports numbers that you should not use for example: ( 21, 80, 443 etc. )

In this guide I will use port '1337'. And you can use this one too.
(or use any random number that has at least 4 digits)

Enter this number in the text-box 'CEF devtools port' like this:



After you click on OK, you should be good to go.
Browser
Make sure your wallpaper is running in Wallpaper Engine.

Then open an instance of Google Chrome.

navigate to : ' http://localhost:1337/ '. Use the port number here you have set in the options in the previous step. If you used another port number, adjust the url accordingly.

It should load a white screen like this, listing the 'files' that are inspectable:
( Which in most cases will be the index.html file of your wallpaper )



Click on the Index.html.

You should now be able to debug the file, as if it was an normal website!

Hope this helped! If it didn't work, please make sure that:

- The Web Wallpaper you want to debug is loaded
- The port is not used by an other application ( change the port number a couple of times, and adjust accordingly in your url in the browser )

Feel free to comment below if you have any questions.
Комментариев: 7
Arthesian  [создатель] 28 ноя. 2020 г. в 3:31 
@Lord of RROD: Correct. MP4 is not supported because it's a propriety format (and costs a license fee to support for Wallpaper Engine)

Webm, Ogg, Ogv will work :) (You should be able to convert your video to these formats using tools)
󠇩⁧󠀡 27 ноя. 2020 г. в 5:06 
Very useful.

Many thanks :cupup:
Lord of RROD 20 июл. 2020 г. в 22:39 
It seems there is no errors in console for some reason. for example I have mp4 which likely because proprietary but I don't see anything about it in console of CEF.
Arthesian  [создатель] 10 июл. 2020 г. в 4:08 
hexxone 15 июн. 2020 г. в 5:26 
When trying this with any wallpaper, sadly the site stays blank and I get these errors in the console: https://imgur.com/a/h6nmKaT

Anyone else with this issue? Maybe something broke in a recent WE update?
Kellie at the lab 20 мар. 2020 г. в 10:50 
Is there any way to do remote debugging on non-web wallpapers? I just want to see what my wallpaper's scripts are logging and it won't show in the log.txt :(
dennis 15 ноя. 2019 г. в 19:39 
Thanks a lot :-)