- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
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
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
Link Copied
2 Replies
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
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
Jugoslav
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Dear Jugoslav,
thank you very much for clarifying this to me. I'm happy to get this good support here !
Christian
thank you very much for clarifying this to me. I'm happy to get this good support here !
Christian
Reply
Topic Options
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page