Device Manager

Tizen Device Manager is a standalone tool that provides information about connected Tizen devices or emulators for application debugging purposes.

With this tool, you can manage the connected devices or emulators and push or pull files from the host computer to devices. The Log View allows you to check the logs from connected devices.

Launching the Device Manager

Launching the Device Manager

You can launch the Tizen Device Manager in 2 ways:

  • In the Visual Studio menu, select Tools > Tizen > Tizen Device Manager.

    Launch from Visual Studio

  • In the Windows® Start menu, select Device Manager.

    Launch from Start menu

Figure: Device Manager

Device Manager

Connection Explorer View

The Connection Explorer view shows the devices and emulators connected to the system. A list of connected devices is available after connecting a device or launching a Tizen emulator with a tree view.

The Connection Explorer view provides the following actions for the connected devices:

  • Show a list of connected devices and connects devices for running and debugging the application.
  • Provide file operations (such as push and pull) on connected devices.
  • Send or receive files between the Solution Explorer and Connection Explorer views by dragging and dropping.
    • The view shows the folder and file list of the connected device.
    • The view shows information of the file (date/size).
    • You can create, delete, and rename files.
    • You can upload and download files.
  • Explore the file system on the connected devices.
  • Launch the Emulator Manager to handle multiple emulator instances.

Figure: Connection Explorer view

Connection Explorer view

Log View

The Log View helps you debug your application by capturing all the events logged by the platform and your application. The Log View shows the logs through the Tizen logging system.

To create log messages, reference the Tizen library in your project and call the functions of the Tizen.Log class:

using System;

namespace XamarinApplication1.Tizen
{
    class Program : global::Xamarin.Forms.Platform.Tizen.FormsApplication
    {
        protected override void OnCreate()
        {
            /// Using Tizen.Log directly
            global::Tizen.Log.Debug("TEST", "Test Debug Message!");
            global::Tizen.Log.Error("TEST", "Test Error Message!");
            global::Tizen.Log.Fatal("TEST", "Test Fatal Message!");
            global::Tizen.Log.Info("TEST", "Test Info Message!");
            global::Tizen.Log.Verbose("TEST", "Test Verbose Message!");
            global::Tizen.Log.Warn("TEST", "Test Warn Message!");

            base.OnCreate();
            LoadApplication(new App());
        }

        static void Main(string[] args)
        {
            var app = new Program();
            global::Xamarin.Forms.Platform.Tizen.Forms.Init(app);
            app.Run(args);
        }
    }
}

The Log View displays a log table consisting of the following fields:

  • Time: log time
  • Level: priority level indicates the urgency of the log message
  • Pid: process ID
  • Tid: thread ID
  • Tag: identification of the log message source
  • Message: log message

Adding and Removing Log Tabs

To add a log tab:

  1. Add a new tab by clicking + next to the existing tabs.

  2. Type the tab name in the Tab Name field, select a device in the Device list, and click OK.

Added log tab

Figure: Added log tab

Added log tab

To remove a log tab:

  1. Click the log tab to be removed.
  2. Click X next to the tab name.

Understanding and Filtering Logs

In the log table, you have the following options and functions:

  • Log level filtering option

    In the Log View, you can filter the log messages. Click the arrow in the Level field, select the messages types you want to see, and click OK.

    Log level filtering option

  • Keyword filtering option

    You can filter the log messages by clicking the arrow in the Pid and Tag, selecting the wanted values, and clicking OK. To filter based on the  Message field content, enter keywords at the search box at the top of the Log View. The keywords must be separated by a space or a comma.

    Keyword filtering option

  • Scroll lock

    The log table shows the latest logs by default. While the application is running, the log table scrolls as new logs are added to the table. To stop the table from scrolling while you are checking a specific log, click the Scroll Lock button (Scroll lock button).

  • Clearing the table

    You can remove all log messages from the log tab by clicking the Clear the Log button (Clear the log button).

  • Exporting logs to a file

    You can export the current log messages in the log tab and save them as a log file by clicking the Export the Log button (Export the log button).

Figure: Exporting a log file

Exporting a log file