Thepurposeofadebuggersuchasgdbistoallowyoutoseewhatisgoingon“inside”anotherprogramwhileitexecutes—orwhatanotherprogramwasdoingatthemomentitcrashed.