Next, this is the part where we give gdb debug other processes. $ echo 'set startup-with-shell off' > ~/.gdbinit If you are using Sierra or above, run the following as well: First, if you haven't installed gdb, do so.
Here is a better way of enabling gdb on your Mac.