- Marcar como novo
- Marcador
- Subscrever
- Silenciar
- Subscrever fonte RSS
- Destacar
- Imprimir
- Denunciar conteúdo inapropriado
Hello,
I recently installed VS2022 Community Edition and the latest Fortran compiler (2025.3.1). When I try to watch a variable in a debug session, I get an "identifier is undefined" error. I can only see the value if I write out the variable in all caps (see screenshot WatchWindow.jpg). This was reported in an other thread in this forum and it was deemed to be an issue of VS2022.
However, I have another computer with the same VS and Fortran installed, and everything on that computer works well. Comparing the installation details via Visual Studio Installer, I see that the computer on which the debugger works as expected has Intel oneAPI Debugger Integration and Intel Distribution for GDB installed (see screenshot WorkingDebug.jpg). The computer that the debugger is not working does not have these components installed (see screenshot ProblemDebug.jpg).
I normally install the standalone Fortran compiler. Assuming that this maybe the cause of the issue, I installed the Intel Fortran Essentials, which is supposed to include Intel Distribution for GDB, but nothing changed. Interestingly, custom installation option shows all components that is supposed to be part of the Fortran Essentials except Intel Distribution for GDB. Webpage to download Intel Distribution for GDB as a standalone tool for Windows says the product is not available.
Has anybody run into this same issue? Any guidance on this would greatly be appreciated.
Thanks.
- Marcar como novo
- Marcador
- Subscrever
- Silenciar
- Subscrever fonte RSS
- Destacar
- Imprimir
- Denunciar conteúdo inapropriado
That the variable type shows as "int" tells me that the Fortran debug support is not being activated. Try this.
Open Visual Studio and go to the main window. From the top toolbar, select Extensions > Manage Extensions. Search for "Fortran" - you should see two items listed, Intel Fortran Compiler and Intel Fortran Expression Evaluator. It's OK if the first shows as not installed, it's the second you are interested in. If the button says "Install", click it. Then close and reopen Visual Studio. If it says it is installed, use the ... button to uninstall it, then reinstall it and reopen VS.
Link copiado
- Marcar como novo
- Marcador
- Subscrever
- Silenciar
- Subscrever fonte RSS
- Destacar
- Imprimir
- Denunciar conteúdo inapropriado
That the variable type shows as "int" tells me that the Fortran debug support is not being activated. Try this.
Open Visual Studio and go to the main window. From the top toolbar, select Extensions > Manage Extensions. Search for "Fortran" - you should see two items listed, Intel Fortran Compiler and Intel Fortran Expression Evaluator. It's OK if the first shows as not installed, it's the second you are interested in. If the button says "Install", click it. Then close and reopen Visual Studio. If it says it is installed, use the ... button to uninstall it, then reinstall it and reopen VS.
- Marcar como novo
- Marcador
- Subscrever
- Silenciar
- Subscrever fonte RSS
- Destacar
- Imprimir
- Denunciar conteúdo inapropriado
With the debug parameters set in iFX, the n does no appear in the watch window as it does in IFORT.
program gaver_stehfest
use, intrinsic :: iso_fortran_env, only: wp => real64
implicit none
integer, parameter :: n = 69, tpts = 100
integer, parameter :: gsn = 16 ! Stehfest Parameter gsn (6 < gsn < 20; only even number)
integer :: i
real(wp), parameter :: ln2 = log(2._wp)
! Variables
! Body of gaver_stehfest
print *, 'Hello World'
end program gaver_stehfestThis is a brief working segment out of the program I was looking at. I left in a few parameters, the array parameter showed up so I left it out.
But this shows up
real(wp), parameter :: factorial(*) = [(gamma(real(i + 1, kind=wp)), i = 1, n)]- how long has one been able to use a function to define a parameter array?
- Marcar como novo
- Marcador
- Subscrever
- Silenciar
- Subscrever fonte RSS
- Destacar
- Imprimir
- Denunciar conteúdo inapropriado
Yes, that worked. Thank you Steve!
- Marcar como novo
- Marcador
- Subscrever
- Silenciar
- Subscrever fonte RSS
- Destacar
- Imprimir
- Denunciar conteúdo inapropriado
John, I'm guessing that you don't have FEE installed. Using an intrinsic function in an initialization expression has been in the language for many years.
- Marcar como novo
- Marcador
- Subscrever
- Silenciar
- Subscrever fonte RSS
- Destacar
- Imprimir
- Denunciar conteúdo inapropriado
Unless there is another one then they are installed, and it works on IFORT. but not IFX.
- Subscrever fonte RSS
- Marcar tópico como novo
- Marcar tópico como lido
- Flutuar este Tópico para o utilizador atual
- Marcador
- Subscrever
- Página amigável para impressora