Skip to content

Latest commit

 

History

History
28 lines (21 loc) · 1.26 KB

debugging.md

File metadata and controls

28 lines (21 loc) · 1.26 KB

Debugging

Simulator applications can be debugged using your browser's debugger, because they contain source maps. To debug an application:

Chrome

Debugging in Chrome

  1. Open the Developer Tools via View > Developer > Developer Tools.
  2. Click Sources.
  3. Under 'Network', select the name of the application (see the browser hash).
  4. Now locate main.cpp.
    • On a pre-built demo, go to the out folder, select the name of the demo (e.g. blinky) and select main.cpp.
    • On a user-compiled app, go to the orange folder, go to the out folder, and select main.cpp.
  5. Click in the gutter to add a breakpoint.
  6. Click the icon in the simulator to restart the debug session.

Firefox

Debugging in Firefox

  1. Open the Developer Tools via Tools > Web Developer > Toggle Tools.
  2. Click Debugger.
  3. Now locate main.cpp.
    • On a pre-built demo, go to the out folder, select the name of the demo (e.g. demos/blinky) and select main.cpp.
    • On a user-compiled app, go to the folder that starts with /home/ubuntu, go to the out folder, and select user_XXX.cpp.
  4. Click in the gutter to add a breakpoint.
  5. Click the icon in the simulator to restart the debug session.