jellyfin-tizen icon indicating copy to clipboard operation
jellyfin-tizen copied to clipboard

How to debug?

Open RTUnit opened this issue 3 years ago • 2 comments

I have successfully built wgt and deployed on Tizen TV using CLI. But the app has a problem during playback of video and I would like to debug it. The problem does not occur when I connect to Jellyfin Web server and run video using Browser app from TV.

sdb shell command does not work (response "closed").

I tried to include Chii debugger in the app (recommended here), but for unknown reason it does not register to Chii server when launched on TV.

I tried installing Tizen Studio and importing the Jellyfin.wgt, however when I run the app on emulator I get many errors so the app even does not launch. When I run on target device (TV) then I get the same error as with sdb (response "closed").

What other option I have to debug? My TV is Samsung UJ6300.

RTUnit avatar Feb 12 '22 22:02 RTUnit

#79 The last 0 is probably unnecessary in new Tizen Studio: "$SDB" -s $DEVICE shell 0 debug AprZAARz4r.Jellyfin 0

Also https://github.com/jellyfin/jellyfin-tizen/issues/46#issuecomment-683747890

dmitrylyzo avatar Feb 13 '22 06:02 dmitrylyzo

@dmitrylyzo, thank you it worked!

In fact I was missing the last number from this command, however in my case "0" in the end returned failure, and I needed to supply "300" (learned about it here). So the final command that worked for me is:

sdb shell 0 debug AprZAARz4r.Jellyfin 300

port: 7011 result: launched

Jellyfin app was launched on TV, then I executed this command:

sdb forward tcp:7011 tcp:7011

added the IP and port to the list of targets in Chrome: image image

accessed the IP and port in the new Chrome tab: image

and once I clicked the link then DevTools launched and I got access to console and everything else needed!

RTUnit avatar Feb 13 '22 12:02 RTUnit