- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
I'm trying to debug a program written by my predecessor, and the debugger is not displaying the contents of an object correctly. I made a small test program which duplicates the problem.
I'm "watch"ing the database object, and before the subroutine call it has an integer and an array of objects in it.Inside the subroutine, it only shows an integer and a single object(the first one). I know that the array is there because the string is set correctly the second time, but I can't seeanything other than the first objectwhile debugging. Is there anything I can do towatch the whole array? I'm using Intel Fortran Compiler Integration for Microsoft Visual Studio 2005, Version 9.1.3250.200. and Visual Studio 2005 Professional Edition Version 8.0.50727.762
Thanks in advance,
Chip
ConsoleTest.f90
program ConsoleTest
use library
implicit none
type(database) :: db
db%records(1)%name = "test1"
db%records(2)%name = "test2"
call test(db)
end program ConsoleTest
library.f90
module library
implicit none
type rec
integer :: num
character(len=10) :: name
end type rec
type database
integer :: recCount
type (rec), dimension(1:10) :: records
end type database
contains
subroutine test (db)
character(len=10) string
type(database), intent(inout) :: db
string = db%records(1)%name
string = db%records(2)%name
end subroutine
end module library
Link Copied
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content

- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page