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

Can't see variables in debugger if in select type construct

Adrian_F_1
Beginner
271 Views

When I break above the select type, I can see the variables in the debugger:

      fvec = 0.0d0
      select type(br)
        type is (t_fred)
          nseg   = 10

ie 

		nseg	1680	INTEGER(4) 
-		fvec	{...}	REAL(8) 
		fvec(1)	0.000000000000000D+000	REAL(8) 
		fvec(2)	0.000000000000000D+000	REAL(8) 
		fvec(3)	0.000000000000000D+000	REAL(8) 
		fvec(4)	0.000000000000000D+000	REAL(8) 
		fvec(5)	0.000000000000000D+000	REAL(8) 
		fvec(6)	0.000000000000000D+000	REAL(8) 
		fvec(7)	0.000000000000000D+000	REAL(8) 
		fvec(8)	0.000000000000000D+000	REAL(8) 

Yet when I step into the select type construct and break at the nseg line, I get in the debugger:

		nseg	 Undefined variable nseg	
		fvec	 Undefined variable fvec	

I suspect it may be a bug in the Windows Integration, I am using 11.1.065.

Is there a workaround I can use to see these variables in the debugger?

0 Kudos
1 Reply
IanH
Honored Contributor II
271 Views

You could pass the relevant variables to a procedure and inspect their values while execution is inside the scope of that procedure.

The integration of the current compiler doesn't have that limitation.

0 Kudos
Reply