To debug the application, follow these steps:
- Double-click on the main function in the source file to add a breakpoint. A blue dot will appear on the side-bar.
- Go to Run | Debug Configuration.
- Under the Debugger tab, verify the GDB debugger path is the correct toolchain debugger location:
/opt/poky/2.4/sysroots/x86_64-pokysdk-linux/usr/bin/arm-poky-linux-gnueabi/arm-poky-linux-gnueabi-gdb
If it isn't, point it to the correct location:
Debug Configuration window
On the Main tab, you can also choose between multiple launchers:
-
- GDB (DSF) Automatic Remote Debugging Launcher
- GDB (DSF) Automatic Remote Debugger Launcher via TCF/TE Launcher
Again, the first will use an SSH connection and the second will use the TCF connection:
Debug Configuration Main tab
- Click on the Debug button. The debug perspective appears with the application executing on the remote Wandboard hardware:
Debug Perspective window
If you get Text file busy error, remember to close the application we ran in the previous step.