How to Debug binary
gdb is a GNU debugger that is used to debug binary files.
Installing gbd
apt install gdb
Debugging
gdb --args {binary}
gbd Commands
gdb = general debugging of binary bt = backtrace
Valggrind is a memory leak analizer that checks binary files for memory issues in debug mode.
Installing Valgrind
apt install valgrind
Valgrind Commands
valgrind {binary}