CLEX CMS Blog

Logo

CMS provides programming and data support to researchers at CLEX, the ARC Centre of Excellence for Climate Extremes

ARC CoE for Climate Extremes

CMS Wiki

CMS Github

10 August 2018

Fortran Debugging Video Series

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.

Episode 1: Terminology

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:

Full Video

Episode 2: Stack Trace

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.

Full Video

Episode 3: Run Time Checks

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.

Full Video

tags: