Debugging with GDB

This page describes how to setup GDB on Linux to debug issues with ArduPilot.


GDB (the GNU Debugger) “allows you to see what is going on `inside’ another program while it executes or what another program was doing at the moment it crashed.” which can be useful to debug high level feature or when investigating very low-level failures with the Pixhawk.

This guide assumes that you have already successfully built the firmware on your machine following the instructions to build the code.

In the following page, we will explain how to debug your modification on Linux and Windows with SITL and on Pixhawk directly.