Hi all,
New here, but a pretty experienced developer getting into modern Fortran after a couple of decades Hiatus.
Code::Blocks (16.01) has been great so far, but when I am debugging my Fortran code, I am having issues with the debugger. If I add a watch onto an allocatable array, then right click -> Properties and select 'Watch as Array', with any Start and Count values other than zero, I get an error of the form "A syntax error in expression, near `[0]@1'."
I can happily use expressions of the form
print *((real_8 *)price)@10
in the debugger command line, but I would like to be able to examine array and how they change line-by-line in the watch window. Is there some way I can set up either gdb or Code::Blocks to allow this?
According to
this page, one possible solution would be to use gdb 7.11 rather than version 7.6.1 which is bundled with Code::Blocks 16.01. I have tried installing gdb and gdbserver executables from a pre-compiled mingw distribution which included gdb 7.11, but this did not work.
I'm not afraid to perform surgery on my installation if that's what's necessary, but any pointers would be gratefully appreciated.
Many thanks,
Dr. Matt...