Simple GDB tricks to help debugging
1 min readOct 25, 2019
If your binary crashes and you don’t know where it happened, try GDB or LLDB on mac.
$ gdb BINARY
Notice for Reading symbols line. If you don't have it. Try build the binary with -g to include debug symbols
> r
SOME CRASH INFO
> bt
BACKTRACE
> up N
Go up in stack