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

Feature request: add ability to watch/view unreferenced submodule objects in Visual Studio debugger

FortranFan
명예로운 기여자 III
54 조회수

Intel team: 

Ref: https://community.intel.com/t5/Intel-Fortran-Compiler/Viewing-submodule-variables-in-the-debugger/m-p/1750646/highlight/true#M179005

This question seconds the request by @Frank_J 

Please develop a facility to watch / view unreferenced submodule object in Visual Studio debugger and offer it to customers of Intel with Intel oneAPI HPC and Intel Fortran (IFX) toolkit as part of Intel Fortran integration with Visual Studio.

To illustrate, please consider the trivial code snippet:

submodule(m) sm
   character(len=12) :: msg = "Hello World!"
contains
   module subroutine sm_sub()
      !print *, msg
      return
   end subroutine
end submodule sm

A breakpoint at line 6 currently in above snippet provides no ability to watch the object 'msg' in the Watch window or view the object by hovering it with the mouse.

Now, uncomment line 5 to introduce a reference to object 'msg' and it comes watchable and viewable.

Contrast this situation with objects hosted in modules e.g.,

module m
   integer :: a = 42
contains
   subroutine sub()
      !print *, "sub::a = ", a
      return
   end subroutine
end module m

With a similar breakpoint at line 6, object 'a' can at least be watched as 'm::a'

 

@Shiquan_Su explains in the link below "This is the current implementation limitation"

https://community.intel.com/t5/Intel-Fortran-Compiler/Viewing-submodule-variables-in-the-debugger/m-p/1751455/highlight/true#M179086

 

Our enterprise team request Intel team to do the needful to overcome this limitation.

0 응답
응답