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

VS watch somtimes cannot show member variable.

WangWJ
New Contributor I
656 Views

I am using VS2026+oneapi2025.3.1. Here is the code

    module BBB
        implicit none
        type B
            integer                 :: ccc=1
            real(8)                 :: ddd=2
        end type B 
    
    end module BBB
    
    module A
        use BBB
        implicit none
        type AA
            character(len=100)              :: title=""
            type(B)                         :: bb
        contains
            procedure,pass                  :: setB
        end type AA
        
    interface
            module subroutine setB(self)
                class(AA),intent(inout)      :: self
            end subroutine setB
    end interface
    
    contains
    
    module subroutine setB(self)
        class(AA),intent(inout)      :: self
        
        self%bb%ccc=2
        self%bb%ddd=4.0
        
    end subroutine setB
    
    end module A 
    
    
    program Console1
    use A
    implicit none

    type(AA)     :: ab
    
    
    call ab%setB()
    
    print *, 'Hello World'

    end program Console1

I can not see the member variable of "self%bb" that is “ccc" and "ddd", like following

WangWJ_0-1769151728881.png

WangWJ_1-1769152011183.png

 

 

0 Kudos
5 Replies
JohnNichols
Honored Contributor I
580 Views

I tried your program in the VS 2022 with the latest IFX, I could single step through all of the code and watch as the values changed. 

The 1 and 2 changed to 2 and 4. 

0 Kudos
WangWJ
New Contributor I
524 Views

You may try it again without VS extension Intel® Fortran Expression Evaluator. The latest OneAPI HPC Toolkit does not include FEE, so I think it should work without FEE.

0 Kudos
JohnNichols
Honored Contributor I
506 Views

I only install VS the latest and oneapi the latest and it always has FEE and you can download FEE for free and install same. 

As shown

JohnNichols_0-1769487169698.png

Reinstall vs 2022 and select everything in the boxes, then install oneapi, make sure you delete everything first and then it might work.  Of course you can look up the minimum VS boxes, there are lots of notes about that around, but mine just copies it from the last install. 

Check your extensions.   If you are using anything else I cannot help.  

 

0 Kudos
WangWJ
New Contributor I
483 Views

A direct upgrade from an older version of the HPC Toolkit will not remove the FEE. However, if you uninstall the older version of the HPC Toolkit first and then install the new version, the FEE will not be installed automatically. In my case, I completely uninstalled VS2022 and the HPC Toolkit first, then reinstalled VS2026 along with the latest version of the HPC Toolkit. The FEE was not installed automatically in this scenario. Should I roll back to VS2022?

0 Kudos
JohnNichols
Honored Contributor I
443 Views

Use the extensions manager in VS 2022 to find and load the FEE.  Look for manage extensions.

But I have never loaded FEE, it is always installed when I load OneAPI as I do that on a lot of machines.  There are five on my desk with it on. 

0 Kudos
Reply