How to test and debug C++ code with tools and techniques