- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
In the example below
module foo
integer, dimension(:),allocatable:: im
integer, parameter:: n=3
contains
subroutine s1(i)
integer:: i
allocate(im(2))
im=i
write(*,*) im
end subroutine
end module
program main
use foo
i=1
call s1(i)
end program
If I put a breakpoint in write(*,*)
The array a or the parameter n are undefined in locals and watch windows
Is there a way to inspect the contents of the a or n
Best regards
module foo
integer, dimension(:),allocatable:: im
integer, parameter:: n=3
contains
subroutine s1(i)
integer:: i
allocate(im(2))
im=i
write(*,*) im
end subroutine
end module
program main
use foo
i=1
call s1(i)
end program
If I put a breakpoint in write(*,*)
The array a or the parameter n are undefined in locals and watch windows
Is there a way to inspect the contents of the a or n
Best regards
Link Copied
1 Reply
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
I don't see an array a in this code. There is an array im. If the variable is not used in the current scope, you can use the syntax modname::varname in a Watch window to view it.
n is a PARAMETER constant and is not visible by default. There is a compiler option /debug-parameters that controls visibility.
n is a PARAMETER constant and is not visible by default. There is a compiler option /debug-parameters that controls visibility.

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