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

DEBUG info

pierangelo
Principiante
1.862 Vistas

Can anyone tell me how I can display the value of a variable defined in a module and used in a function?
What is the syntax for adding a variable like this to the Visual Studio 2022 Watch window?
use nlinfo, only: tend

0 kudos
4 Respuestas
jimdempseyatthecove
Colaborador Distinguido III
1.789 Vistas

try watching

nlinfo::tend

 

Jim Dempsey

TiborKibedi1
Principiante
1.213 Vistas

It seems this method stopped working possible late last year?. Here is a screen dump. Am I missing something?

It is rather frustrating to develop codes without the VS nice debugging function. Searching the forum I could not recall any encourigment from the Intel people that the problem will be resolved.

 

Tibor

VS22_IFX25.2_Debug.png

andrew_4619
Colaborador Distinguido III
1.186 Vistas

The module::var syntax works fine with me for all intel versions. I suggest your install may be broken.

TiborKibedi1
Principiante
1.117 Vistas

Thanks for the advice. I already tried to reinstall VS22, OneApi Base Kit & Intel HPC, but it did not help. However I just reinstalled again. Installing the OnaApi Base Kit I selected not too integrate it into VS22. VS 22 was integrated during Intel HPC. This time debugging works using the module::var syntax. 

 

Tibor

 

Responder