Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Open Tizen Remote Web Inspector from command line

I'm about to take over maintaining a Tizen 2017 js application, and am new to the platform. As far as I know, the application has been developed outside of the official Tizen IDE by taking the skeleton of a basic project, and doing the rest with normal web development toolchains. As such, the application can be installed and opened using the tizen CLI command, but it doesn't seem to be possible to install and inspect using the IDE (eg. "Run as" / "Debug as" fail) for whatever reason.

Is it possible to launch the Remote web inspector from the command line?

like image 321
orbitbot Avatar asked Jul 24 '17 08:07

orbitbot


People also ask

How do I debug Tizen app?

In the Tizen Studio Device Manager, right-click the emulator or device, and select "Permit to install application". To launch the application in debug mode, in the "Project Explorer" view, right-click on the project you want to debug and select "Debug As > Tizen Web Application".

How do I run a project on Tizen emulator?

To run the application on the emulator, do one of the following: In the Project Explorer view, right-click the project and select Run As > Tizen Web Application. In the Tizen Studio menu, go to Run > Run As > Tizen Web Application. On the Tizen Studio toolbar, click Run.


1 Answers

It took forever to figure this out but you can tell the TV to open a debugging port and then use sdb forward it to your local machine without the Tizen Studio IDE.

Assuming sdb is connected to the TV you can use the following

sdb shell 0 debug SomePackage.Identifier

then take the port returned there and forward it

sdb forward tcp:45087 tcp:45087

From there you can find your inspectable application at chrome://inspect/devices#devices

like image 131
WA9ACE Avatar answered Sep 21 '22 18:09

WA9ACE