When building C/C++ projects with the NDK, you may encounter exceptions and performance issues common with native projects. To help you locate these issues, the NDK provides some popular debugging and profiling tools.
The following methods are provided for debugging and profiling:
When debugging on a real device, if the .so file's source code path on the local compilation device does not match the configured C++ source code path, see Debugging Third-Party Library Source Code.