Simulator applications can be debugged using your browser's debugger, because they contain source maps. To debug an application:
Chrome
- Open the Developer Tools via View > Developer > Developer Tools.
- Click Sources.
- Under 'Network', select the name of the application (see the browser hash).
- Now locate
main.cpp.- On a pre-built demo, go to the
outfolder, select the name of the demo (e.g.blinky) and selectmain.cpp. - On a user-compiled app, go to the orange folder, go to the
outfolder, and selectmain.cpp.
- On a pre-built demo, go to the
- Click in the gutter to add a breakpoint.
- Click the ↻ icon in the simulator to restart the debug session.
Firefox
- Open the Developer Tools via Tools > Web Developer > Toggle Tools.
- Click Debugger.
- Now locate
main.cpp.- On a pre-built demo, go to the
outfolder, select the name of the demo (e.g.demos/blinky) and selectmain.cpp. - On a user-compiled app, go to the folder that starts with
/home/ubuntu, go to theoutfolder, and selectuser_XXX.cpp.
- On a pre-built demo, go to the
- Click in the gutter to add a breakpoint.
- Click the ↻ icon in the simulator to restart the debug session.

