Follow simple steps to install cgdb on Mac

Package Information:

Name: cgdb
Use: cgdb is a lightweight curses (terminal-based) interface to the GNU Debugger (GDB)
URL: https://cgdb.github.io/

Installation Steps:

  1. Open Terminal using Spotlight search by pressing <command+space>. Type terminal and hit Enter key.
  2. Now, Execute
    ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)" < /dev/null 2> /dev/null
  3. Install cgdb using brew
    brew install cgdb

cgdb is ready to use now!