Debugging a NaCl Project in Tizen Studio

Introduction to debugging the NaCl modules with Tizen Studio.

Preparing the Debug Launch Configuration


As NaCl debugging is broken in recent versions of Google Chrome for Windows, it is recommended to use an earlier version for debugging purposes (Click here for earlier version).
After downloading and extracting, please set the correct Chrome path in the Debug Configuration Dialog. For details on setting custom Chrome path, please consult the launching guide.


Debugging of NaCl on Tizen emulator works out of the box, but in order to debug on real TV device with Tizen 2.4, few prerequisites must be fulfilled:

  • obtain Developer TV (from Samsung or by converting retail one with R2D image)
  • install debug version of WebKit/Chromium binary
  • set-up TV to turn on debug mode for NaCl

For more information please contact with Samsung.

Step 1

Before you start debugging, you need to create a Debug Configuration.

Step 2

Create a new Device Debug (for the emulator) or
Chrome Debug (for Google Chrome) configuration by double clicking the desired section.

Most of the fields in first tab are exactly the same as that of the launching procedure. Only the last field is unique to the debugger. Please input the full path of your executable file (.nexe) which is generated when you build the code. This file should already be present in the build directory of the widget you want to debug. If it's not, please compile the widget first.

Step 3

You may set the debugging entry point in the Debugger tab by filling the field Stop on startup at (see the Eclipse documentation for the details).


The other tabs and subtabs are the regular tabs of the Eclipse Remote Debugger. Avoid changing their settings.

Running the Debugger

You will probably want to set some breakpoints (optional if you have set the Stop on startup at field) by double clicking the left margin of the editor window.

Afterwards, press the Debug button to launch the widget in the debug mode and start the debugger.

The rest of the process is same as in the case of the regular Eclipse Remote Debugger, please refer Eclipse documentation for more details.

Enabling Debugging on Tizen Emulator

To allow the debugger to connect to the Emulator it is necessary to add port forwarding.

Right-click the running Emulator window and choose the Control Panel option.

In the Network settings click the Add port-forwarding button.

In Source Address and Dest. Address port fields input 4014.
Click the Apply port-forwarding button. The appropriate entry will appear in the list below.


Please note, that adding the port-forwarding for port 4014 disables other debugging possibilities, e.g. debugging on Chrome. To enable it back please close the Emulator window.


Please note, that this step has to be performed every time the Emulator is launched.


The Source Address port can be freely changed as long as it matches the setting in the IDE debug configuration.

To change the setting in the IDE please open the Debug Configurations and navigate to your configuration.

In the Debugger card go to Connection options. There is a Port number field which can be changed.