by Holger Wolff
Last year we have given a Fortran Debugging Session during a workshop.
Some people were unable to attend, and asked whether there would be a repeat.
While we are not currently planning to do that, the idea was hatched to create a YouTube Video Series on Fortran Debugging, as there are preciously few resources out there.
The first episode focuses on the understanding of what the term ‘bug’ actually means.
It presents a distinction, originally proposed in Andreas Zeller’s book Why Programs Fail between different aspects of a bug:
The second episode highlights the output a program often leaves after a crash: The Stack Trace.
It explains what a Stack Trace is, how to add information to the Stack Trace, and how to interpret it.
The third episode explains how to add self-checks to the program.
Those so-called Run Time Checks monitor the health of the program and can warn much earlier if an infection occurred.
Very useful during Debugging, they have major drawbacks during normal operation, so you don’t want to keep them in once your program runs fine again.
How to use the Pre-Processor to quickly enable and disable run time checks is part of the Video.