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

Watching objects in debugger issue

chip_ray1
Beginner
316 Views

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
0 Kudos
1 Reply
Steven_L_Intel1
Employee
316 Views
Works fine for me with 10.1.024. I can see everything in "db" inside the subroutine.
0 Kudos
Reply