Debugging-Tools depends on IDE or OS you use.
If you are a Linux user you may use gdb or eclipse CDT, on Windows you may use MS VS, it is said to be the best for debugging.
Testing, there is Unite test library and methods for c++ as well, not just for Java :-), but it is better if you define your own test-cases and auto tests.