I have found that you can debug with GDB when compiling with GCC however at our university we are required to use CLANG for compiling and I can't find an equivalent of GDB for GCC for CLANG, is there one?
LLDB appears to be the equivalent debugger for CLANG. Here are some links I found on learning LLDB and the equivalent commands for LLDB from GDB.
http://lldb.llvm.org/lldb-gdb.html