- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Suppose I have:
----------------------------------------------------------------------------
SUBROUTINE SUB1
integer ix,iy,iz
contains
subroutine sub1a
integer iz
print *,ix,iy,iz
end subroutine
end
-------------------------------------------------------------------------
Now notice I have iz declared twice. Would that be local to the contained routine?
I assume that the contained routine can reference ix, and iy.
Incidentally, one debugging headache is that if I am within
the contained routine, at a breakpoint, I cannot reference
any variables that are not declared INSIDE that routine.
So even though the routine can reference those variables, the DEBUGGER can NOT get their values.
Is there a way around that?
so far I have to insert P
Link Copied
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
To reference those variables with the debugger, I have to insert
print statements, which defeats the purpose of having it there.
Variables in the calling sequence CAN be referenced, though
as well as local variables.
- 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