언어 설정

Menu
Sites
Language
Tizen Studio *.wgt deployment fails (Uninstalling the package... > Fail)

Dear All,

 

I can't debug *.wgt application on Gear S2. When I try I see Problem Occurred popup saying "Uninstalling the package... > Fail". It happens after I successfully launch an app (Run As instead of Debug As). 

Here is the fragment of the log:

[2016.09.22 18:11:55][DEBUG] CommandLauncher.java(188) - /usr/bin/pkgcmd -C -n "zV3CrUJgUj";echo $?:0
[2016.09.22 18:11:56][DEBUG] CommandLauncher.java(188) - /usr/bin/pkgcmd -k -n "zV3CrUJgUj" > /tmp/null.deployer 2>&1; echo $? :0
[2016.09.22 18:11:56][DEBUG] KillStep.java(120) - Waiting application is stopped...
[2016.09.22 18:11:56][DEBUG] CommandLauncher.java(188) - /usr/bin/pkgcmd -C -n "zV3CrUJgUj";echo $?:0
[2016.09.22 18:11:59][DEBUG] CommandLauncher.java(188) - /usr/bin/pkgcmd -C -n "zV3CrUJgUj";echo $?:0
[2016.09.22 18:11:59][DEBUG] KillStep.java(133) - Stopping running application... > Success
[2016.09.22 18:11:59][PERFORM_E] KillStep.java(134) - [Category: web.launch    Variable: .kill] at 2016-09-22 18:11:59.589      [4680(ms)]
[2016.09.22 18:11:59][PERFORM_S] UnInstallStep.java(93) - [Category: web.launch    Variable: .uninstall] at 2016-09-22 18:11:59.589
[2016.09.22 18:11:59][DEBUG] SdbCommand.java(208) - $ /usr/bin/pkgcmd -u -q -t wgt -n "zV3CrUJgUj"

Any advice?

Best
Kamil

 

Responses

2 댓글
Iqbal Hossain

Hi~

First of all, if you want to dubug your app, why are you trying to run the 'Run As' command ?

Use 'Debug As' for debugging your app. Make sure that you have installed Google Chrome on your machine.

For you i am giving the process here , please follow carefully,

Debugging Web Applications

Debugging a Web application enables you to understand its flow of control. You can debug a Web application by running it on the target device and debugging its JavaScript code. JavaScript code debugging uses the Web Inspector tool.

To debug your application on the target device:

  1. Connect the target device to your computer.
  2. Open the Debug Configurations window by doing one of the following:
    • In the Project Explorer view, right-click the project and select Debug As > Debug Configurations.
    • In the Tizen Studio menu, go to Run > Debug Configurations.
  3. In the Debug Configurations window, click New Launch Configuration.

    If you have not made any changes to the application source files since the last time the application was run, Rapid Development Support (RDS) is used to skip the package upload and make running the application faster. RDS is enabled as default. To disable it, go to Window > Preferences > Tizen Studio > Rapid Development Support.

  4. Set the timeout using the Timeout value slider.

    The timeout value represents the waiting time for the application launch operation. If you are using a lower configuration system, set a higher timeout value to avoid application launch failure errors.

  5. Start the debugging by clicking Debug.

    If no changes are required in the debug configuration, you can also debug the application on the target device by doing one of the following:

    • In the Project Explorer view, right-click the project and select Debug As > Tizen Web application.
    • In the Tizen Studio menu, go to Run > Debug As > Tizen Web application.
    • On the Tizen Studio toolbar, click Debug.

    The Web Inspector tool is displayed in a new Chrome browser window. You can perform the following debugging tasks using the Web Inspector:

    • Inspect styles
    • Inspect the DOM
    • Inspect resources
    • Debug JavaScript code
    Note:

    The Web Inspector always opens in a new window. Life-cycle synchronization between the application to be debugged and the Web Inspector browser is not supported.

    Installing Google Chrome on the device is mandatory for the Web Inspector to work. When Google Chrome is installed on the device, the Tizen Studio automatically detects it. To select the browser path, go to Window > Preferences > Tizen Studio > Web > Chrome.

  6. To debug the JavaScript code, click Sources in the Web Inspector menu.

You must enable debugging before debugging JavaScript code.

 

Reference: https://developer.tizen.org/development/getting-started/web-application/application-development-process/running-and-debugging-applications

 

-Thanks

 

 

Kamil Grondys

Hi,

It's the easiest way to reporodcue an error. Sometimes Debug As works. But usually not. Have you tried to Debug an app with Tizen Studio? For the first time it sometimes works, but every next attempt fails in my case. And I wonder what might be the reson. And what is experience of others.

Thanks,
Kamil