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

Watch: Unable to display array elements in VS 2013

DavidWhite
Valued Contributor II
324 Views

I cannot display array elements such as Y(X(1:6)) in the Watch window in MSVS 2013 Pro with XE2017.

X(1:6) displays the correct values ... 45, 46, ... 50

Y(45:50) displays the correct data

But Y(X(1:6)) reports Subscript out of range.

X is an integer array, Y is REAL(8)

 

0 Kudos
4 Replies
DavidWhite
Valued Contributor II
324 Views

In addition, this error occurs when there has been a fatal runtime error on this line, due to invalid memory access.

WRITE(LINE,84,iostat=ioerr) SODAPR,TFLOW(NOSD(1:NSEED))

Where NSEED is a parameter integer (=6).

Rebuilding and rerunning using XE2016 results in no runtime error and although the data values look identical to when running the XE2017 version.

Despite this, TFLOW(NOSD(1:6)) or TFLOW(NOSD(1:NSEED)) cannot be displayed in the VS Watch window.

0 Kudos
andrew_4619
Honored Contributor II
324 Views

Do you have /debug-parameters:used  set? The debugger doesn't evaluate parameters as variables without this.

0 Kudos
Steven_L_Intel1
Employee
324 Views

Interesting. The 2016 VS integration would not allow Y(X(1:6)) at all. It looks as if we added some support for vector subscripts in the watch window in 2017 but I see the same behavior you do here and will report it. Issue ID is DPD200415034.

If you could come up with a self-contained example for your other issues, we'll be glad to investigate.

0 Kudos
Steven_L_Intel1
Employee
324 Views

I expect this to get fixed in Update 2 to Parallel Studio XE 2017.

0 Kudos
Reply