How to get Debug logs #9
OneLiberty
started this conversation in
General
Replies: 1 comment
|
for some reason when I just opened the link and F12ed the devtool it didn't work. |
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
How to get debug logs
So, in order to help diagnose any issue, sharing logs is often really useful.
That's why I'll try here to explain you how to get the logs from the app.
This a bit technical and it require some knowledge on CLI. I'll try to be as clear as possible.
Prerequisites
Getting Started
You'll need to locate the tizen studio installation folder which is named by default "tizen-studio". Then enter the "tools" folder where sdb.exe should be located. My full path looks like this :
E:\tizen-studio\tools\sdb.exeyours might differ depending on your installation path and OS.You can now open a powershell (or terminal) in the folder (MAJ+Right click in the folder, then open in powershell).
.\sdb.exe connect TV_IP(replace TV_IP by your TV IP address)..\sdb.exe shell 0 debug "MoonLightS.MoonlightWasm"to launch the app in debug mode.Here, we're interrested in the port shown, in my case 38033, yours WILL BE different.
http://TV_IP:PORT_NUMBER.In my case my TV_IP is
192.168.1.26and my PORT_NUMBER is38033so my link ishttp://192.168.1.26:38033consoletab of DevToolsAlternative
FAST GUIDE
You should be able to launch those first commands from the docker container you used to install the app, which should allow you to bypass Tizen Studio installation on your PC.
For this you'll need to have docker installed and use
docker run -it --rm ghcr.io/oneliberty/moonlight-chrome-tizen:samsung_wasmto enter the container.sdb connect TV_IPsdb shell 0 debug "MoonLightS.MoonlightWasm"note the port showhttp://TV_IP:PORT_NUMBERAll reactions