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

DEBUG info

pierangelo
Einsteiger
1.583Aufrufe

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 Antworten
jimdempseyatthecove
Geehrter Beitragender III
1.510Aufrufe

try watching

nlinfo::tend

 

Jim Dempsey

TiborKibedi1
Einsteiger
934Aufrufe

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
Geehrter Beitragender III
907Aufrufe

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

TiborKibedi1
Einsteiger
838Aufrufe

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

 

Antworten