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

Viewing derived type variable value in debug window

bbeyer
Novice
1,746 Views

Hello,
I have recently converted from CVF6.6 to Intel XE 2011 with Visual Studio 2010 and am still trying to figure things out in Visual Studio. I have a question concerning the ability to see the value of a derived type variable component in the debug window. Previously I could highlight the variable and see the value without adding it to the watch window, such as:



The new software does not show the value:



Is there a setting to make this function as previous? Thank you

0 Kudos
11 Replies
Steven_L_Intel1
Employee
1,746 Views
If you hover over the GS you will see a tooltip for the structure which will let you expand down the nested levels. Not exactly the same, but it works.
0 Kudos
bbeyer
Novice
1,746 Views
Thanks Steve. I had seen this, and it works, but I am often dealing with derived type variables with hundreds of components and/or arrayed componentswith thousands of elements. The previous functionality enabled me to quickly see a value without expanding or adding to the watch window.
0 Kudos
Steven_L_Intel1
Employee
1,746 Views
Ok - I will add this as a feature request.
0 Kudos
Andrew_Smith
Valued Contributor I
1,746 Views

This already works for me in VS2008, Is it gone in VS2010?
0 Kudos
Steven_L_Intel1
Employee
1,746 Views
What I see is that if you hover over the leftmost variable name in the reference you'll get a tooltip for the variable, which can then be expanded. What is being asked for here is hovering over the component and seeing the value of just that component. I see the same behavior in VS08 and VS10.
0 Kudos
Andrew_Smith
Valued Contributor I
1,746 Views
I dont have problems with tip text components.

Unless that is it is a extended type and then neither watch or tooltip work. Not much fun as soon as you start using F2003.

And another case is a component that is an allocatable character. It is not shown in either watch or tooltip.

Is the debugger going to get fixed for these issues? You can not be serious calling these fixes "feature requets". What use is a debugger that can not see any data?

0 Kudos
Steven_L_Intel1
Employee
1,746 Views
The feature request is specifically to show the specific component selected rather than the variable. Which compiler version are you using to show the value in your screenshot?
0 Kudos
IanH
Honored Contributor III
1,746 Views
The "show the value of the entire thing that is in the selection when my mouse hovers over the selection" (where the selection could include accessing components of a derived type or even simple expressions, but it must be limited to a single line) works ok in VS 2005 with ifort 12.0.3 (components of the parent type and/or allocatable character components may still be an exception).
0 Kudos
Andrew_Smith
Valued Contributor I
1,746 Views
I am using 11.1.067 in VS2008
0 Kudos
Steven_L_Intel1
Employee
1,746 Views
This is submitted as issue DPD200037459.
0 Kudos
Steven_L_Intel1
Employee
1,746 Views

This was fixed in Visual Fortran Composer XE 2013 SP1 (compiler version 14.0.) I tested VS2010 and VS2012.

0 Kudos
Reply