Skip to main content
The Valgrind tool helps detect memory-related errors that are common in C and C++ programs. These errors can lead to crashes and unpredictable behavior, such as memory leaks and memory corruption. By default, the build includes the Valgrind tool.

Prerequisite

Set up SSH. For instructions, see Sign in using SSH.

Debug with Valgrind

  1. Push debug symbols to the device. For instructions, see Configure debug symbols.
  2. Run the following Valgrind command on the device:
    Sample output:
For more information, see Valgrind.