Vitux published a tutorial about how to use GDB to debug programs in Ubuntu 20.04.
How to Use GDB to Debug Programs in Ubuntu 20.04
GNU Debugger (GDB) is an open-source debugger for GNU Systems. The debugger is portable and can be used for multiple languages as C/C++ and Fortran. It can be used for debugging programs by observing their states on specific breakpoints.