英文:
Remote Debugging Website on LG WebOS Browser
问题
有没有可能远程调试在LG电视浏览器上打开的网站?我找到了一些用Visual Studio Code调试我的WebOS应用程序的解决方案,但我想调试WebOS内部浏览器。
原因是有一个网站,只有在LG内部浏览器上显示时才会出现问题。
我还尝试过使用WebOS CLI中的"ares-inspect"命令,但我认为只能调试已知AppID的自己的应用程序。
希望有人可以帮助我...
编辑 1:
与此同时,我找到了内部浏览器的AppID,并尝试通过ares连接到它:
ares-inspect -a com.webos.app.browser -d tv
当我在(与我的WebOS版本对应的)Chromium浏览器中打开URL(http://localhost:49576)时,我只看到这个屏幕:
英文:
Is there any possibility to debug a Website remotely, which is open on an LG TVs Browser? I found some solutions to debug my own WebOS App with Visual Studio Code, but i want to debug the WebOS internal Browser.
The Reason for this is, that there is a website which has issues only when dsiplaying it on the LG internalal Webbrowser.
I also tried it with the "ares-inspect" command from the WebOS CLI, but i think its only possible to debug your own App with the known AppID.
I hope someone can help me out here ...
Edit 1:
In the meantime i figured out the AppID of the Internal Browser and tried to connect via ares to it:
ares-inspect -a com.webos.app.browser -d tv
Session#forward() failed forwarding client localPort: 0 (inCnx.remotePort: 65530 )=> devicePort: 9998
ares-inspect WARN Session#forward() failed forwarding client localPort: 0 => devicePort: 9998
Session#forward() failed forwarding client localPort: 0 (inCnx.remotePort: 65531 )=> devicePort: 9998
ares-inspect WARN Session#forward() failed forwarding client localPort: 0 => devicePort: 9998
Application Debugging - http://localhost:49576
When i open the URL (http://localhost:49576) in (for my WebOS version corresponding) Chromium Browser i only get this Screen:
答案1
得分: 1
以下是翻译好的内容:
我建议的是按照这里描述的方式构建一个托管的网络应用程序:https://webostv.developer.lge.com/develop/getting-started/web-app-types
因为托管应用程序使用与WebOS上的常规浏览器相同的浏览器引擎。但你将受益于更容易进行调试。
你可以使用这个示例项目快速入门:https://github.com/webOS-TV-app-samples/HostedWebApp
将index.html
中的URL替换为你自己项目的URL。如果你使用本地运行的开发服务器,请插入你计算机的IP地址。例如,http://192.168.1.2:8080。
安装它到你的WebOS电视上,运行它,然后从你的计算机上执行ares-inspect -a com.sample.hosted -d tv
来启动检查器。
现在你应该能够阅读控制台消息。
英文:
What I suggest is building a hosted web app as is described here: https://webostv.developer.lge.com/develop/getting-started/web-app-types
Because a hosted app uses the same browser engine as the regular browser on WebOS. But you will have the benefit of making debugging easy.
You get use this example project to get started quickly: https://github.com/webOS-TV-app-samples/HostedWebApp
Replace the URL within index.html
with the URL from your own project. If you use a locally run dev server, insert the ip address of your computer. eg. http://192.168.1.2:8080.
Install it on your WebOS tv, run it and then execute ares-inspect -a com.sample.hosted -d tv
from your computer to start the inspector
Now you should be able to read the console messages
通过集体智慧和协作来改善编程学习和解决问题的方式。致力于成为全球开发者共同参与的知识库,让每个人都能够通过互相帮助和分享经验来进步。
评论