Intel® Fortran Compiler
Build applications that can scale for the future with optimized code designed for Intel® Xeon® and compatible processors.
28477 Discussions

Watching module variables while debugging

mftech
Beginner
246 Views
Hello,

during Debugging my Fortran App - I'm developing under
MS Visual Studio.Net 2003 & Intel Fortran 7.1 - i cannot
watch any variables, defined within a module. If i
debug a procedure, located within such a module, the local variables can be watched, but the variables defined
within the module not.
The error message is:
-> Symbol not found (Intel Enhanced Debugger)
-> Variable xxx not defined (Visual Studio Debugging mode)

I have already tried to located the variables by using the following syntax:
-> ::
but it does not work either.

Here is a code snipped:
------------------------------------------------
module iofiles

use iomod
use filemod

implicit none
...
character (len=*), parameter :: ioconf="io.conf"
!! ---> ioconf CANNOT BE WATCHED
...

subroutine read_iofiles(lun)

implicit none

integer, intent(in) :: lun

character (len=20) :: current_file
!! ---> current_file CAN BE WATCHED
...
! test if ioconf exist's
inquire (file=ioconf, name=current_file, exist=
exist_file)
if (exist_file) then
open (lun, file=ioconf)
...
end subroutine read_iofiles
------------------------------------------------

Any help is appreciated !!

Thanks
Christian
0 Kudos
2 Replies
Jugoslav_Dujic
Valued Contributor II
246 Views
ioconf is not a variable -- it is a constant (PARAMETER). Constants can not be watched in either debugger. I realize that it's sometimes useful, but that's the current state of the art. The main reason is that they are frequently not even stored in a memory location, but compiler usually hard-wires them into the machine code.

Jugoslav
0 Kudos
mftech
Beginner
246 Views
Dear Jugoslav,

thank you very much for clarifying this to me. I'm happy to get this good support here !

Christian
0 Kudos
Reply