Beej's Quick Guide to GDB (2009)
I'll preface this by saying that I don't have that much C or C++ experience. Now on to the topic of debugging em:<p>I'd suggest trying out lldb [0] as an alternative to gdb. In general it has more sensible commands [1] and it can be scripted with python.<p>If you're willing to pay, CLion [2] is amazing and it includes an interactive debugger [3] which, IMO, completely blows away these CLI tools.<p>[0] <a href="https://lldb.llvm.org/index.html" rel="nofollow">https://lldb.llvm.org/index.html</a><p>[1] <a href="https://lldb.llvm.org/lldb-gdb.html" rel="nofollow">https://lldb.llvm.org/lldb-gdb.html</a><p>[2] <a href="https://www.jetbrains.com/clion/" rel="nofollow">https://www.jetbrains.com/clion/</a><p>[3] <a href="https://www.youtube.com/watch?v=wUZyoAnPdCY" rel="nofollow">https://www.youtube.com/watch?v=wUZyoAnPdCY</a>