Fortran_Lecture_10

Fortran_Lecture_10 - Fortran Class Notes Lecture 10 Basic...

Info iconThis preview shows pages 1–2. Sign up to view the full content.

View Full Document Right Arrow Icon
Fortran Class Notes Lecture 10 – Basic Debugging By now, you have written some programs of your own and have learned something about debugging just by experience. That is in fact the best way to learn debugging. There are so many possible problems and so many possible error codes, which often don’t really say what went wrong, that it’s pretty futile to “teach” debugging. What I can do is give you the general approach and some basic strategies to help you learn to debug your programming. From there, it’s up to you to practice, experiment, and learn from experience. First, you need to understand the two different kinds of errors. There are compile and runtime errors, and each one should be treated differently. Compile errors are the ones that show in the bottom window of Force when you try to compile the program. Compile errors indicate a problem with your syntax. Maybe you have a typo that results in a nonsense command, or you have tried to use too many or too few arguments when calling a function or subroutine. Maybe you have put commands in the declaration block, or variable declarations down in the main program. The good thing about compile errors is
Background image of page 1

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full DocumentRight Arrow Icon
Image of page 2
This is the end of the preview. Sign up to access the rest of the document.

This note was uploaded on 11/21/2011 for the course AERO 3970 taught by Professor Doucette during the Spring '11 term at Auburn University.

Page1 / 2

Fortran_Lecture_10 - Fortran Class Notes Lecture 10 Basic...

This preview shows document pages 1 - 2. Sign up to view the full document.

View Full Document Right Arrow Icon
Ask a homework question - tutors are online