Debugging WebAssembly TV Application
This section describes how to debug WebAssembly modules in a TV application.
You can debug WebAssembly TV application on an emulator or a Samsung TV using the Developer's Tools component, which is started automatically whenever you start the debug session.
Before starting the application on an emulator or a Samsung TV:
- If you do not have a certificate profile already, create one.
- Launch an appropriate emulator instance, or connect the TV to the SDK.
To debug WebAssembly modules in a TV application:
- In the "Project Explorer" view, right-click the TV application project and select "Debug As > Tizen Web Application".
The Tizen Studio launches the TV application project on the connected emulator or TV and then a DevTools window opens.
- Navigate to the "Sources" tab and select "Page" tab on the left hand side of the window so that the page tree is visible.
You should see a wasm folder among others in the tree (see Figure 1).
NoteUnfold the tree and you will notice that there are other folders - one per each WebAssembly module on the page. The folders may again be unfolded and there should be a bunch of source files visible.
If you cannot see the folder, press F5 to reload the page.
There is one source file per each WebAssembly function in your module.
NoteYou can set breakpoints, watch expressions and do other typical debug activities.
In Tizen 5.5 TV application projects the source is visible as WebAssembly bytecode.
For example, to set a new breakpoint just click the line number of the currently displayed code, where the breakpoint is to be set.
Now, when you reload the page, the WebAssembly execution will pause on the set breakpoint.