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

Tabular view of incoming dummy array ?

WSinc
New Contributor I
500 Views
Hello -

When I have an array in an incoming argument, it usually is dimensioned with a
*, i.e. integer(4) a(*), or B(0:*), etc.
The debugger only lets me show the first element in the tablular view.

Is there a way to override this? currently, I have to recompile it with a dimension of say 10, or whatever
is the highest element I want to look at. But this causes prolems if the CODE tries to reference a higher element location, itll trap the instruction.

Plus having to stop and recompile it wastes time.

Is there are way around this?

Yours; Bill S.
0 Kudos
3 Replies
Steven_L_Intel1
Employee
500 Views
You can type A(1:10) in a debugger watch window and see elements 1:10.
0 Kudos
WSinc
New Contributor I
500 Views
I see, but there is no way to get the interactive viewing by
positioning the cursor, I take it?
That was pretty handy.....
Yours; Bill S.
0 Kudos
Steven_L_Intel1
Employee
500 Views
No, because it doesn't know what the bounds are. Consider using assumed-shape arrays (:) rather than assumed-size (*), though this requires that the caller has an explicit interface visible.
0 Kudos
Reply