For some quick into to various ways to debug, take a look at the issues in the milestone: Debugging OpenCV in Android C++ https://github.com/AndroidImageProcessing/AndroidOpenCVforHackathons/issues?milestone=2&state=closed