On Wednesday, June 9, 2021 at 5:10:20 PM UTC-7,
dangtruo...@gmail.com wrote:
(snip)
(snip)
> There is only 1 program in the file simple_linked_list.f90. The others are subroutines for algorithms. When the IDE compiles code, I saw it has -g flag.
Usually when people say "program", that includes all subroutines needed.
And yes you want -g for use with the debugger. (And many always put in -g)
So, you are setting breakpoints inside simple_linked_list and they aren't working?
Did you try breakpoints in subroutines?
More often than use breakpoints and debuggers, I just put pause statements in
to see where the program is getting to, and step by step what it is doing.
Yesterday I found a bug in a program that is almost 60 years old that way.
(Though it should have been faster, as gfortran did give a warning for it.)
I have in the past found funny things with the way breakpoints work in
compiled Fortran code. One I ran into many years ago, is related to ENTRY
statements.
In any case, more details on what it does, and doesn't do, makes it easier
for others to help.