Except using the tools embed in the IDE (like break points), some other ways exist to debug.
1) cout the variable to trace their development
2) extract the small module that need to be debuged and copy it to a new project, then test the new one
3) test different inputs, especially some specials
4) using "diff" and "| hexdump -C " to compare with the reference.