Wallpaper Engine:壁纸引擎

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.
9 条留言
AcedUpSteemer 7 月 15 日 下午 3:33 
It's saying this site can't be reached for me
BANDIT 6 月 28 日 下午 2:09 
lmao my issue was i've waited in preview mode and no CEF instance occured anywhere. I just had to install and launch wallpapers on monitor lol, localhost spawned immediately
Arthesian  [作者] 2020 年 11 月 28 日 上午 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)
󠇩⁧󠀡 2020 年 11 月 27 日 上午 5:06 
Very useful.

Many thanks :cupup:
Lord of RROD 2020 年 7 月 20 日 下午 10: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.
hexx.one 2020 年 6 月 15 日 上午 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 2020 年 3 月 20 日 上午 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 2019 年 11 月 15 日 下午 7:39 
Thanks a lot :-)