A stack trace is a great aid when debugging a program. You will get a stack trace when your program throws an Exception, and sometimes when the program terminates abnormally.
Stack trace for a simple NullReferenceException in Windows Forms
This modified text is an extract of the original Stack Overflow Documentation created by following contributors
and released under CC BY-SA 3.0