06. Let's debug! Program debugging is simple with the Fortran Builder.
Channel: Fortran Tutorial
Date: 2022-08-19

In this tutorial we demonstrate the following simple debugging procedures. 

1. Preparing a program for debugging. 
2. Setting a breakpoint. 
3. Debug execution, temporarily stopping at the previously set breakpoint. 
4. Examining a variable, stepping through line by line, and watching the      
    variable change. 
5. Ending the debug session. 

Fortran code
Program dtest
  Integer :: i, ii
  ii = 0
  Do i = 1, 6, 2
    ii = ii + i
  End Do
  Print *, ii
End Program

#NAG_fortran #debugging #fortran