With above links I have provided, please note I am basing them on the following: the quantity and quality of information on how to develop and DEBUG C++ code is tremendous. If you go over even a fraction of such material and gain a bit of ease with C++ debugging, you will be able to apply CERTAIN of those concepts to Fortran as well and it will help you in your work with Fortran also.