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

DEBUG info

pierangelo
Beginner
1,486 Views

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 Replies
jimdempseyatthecove
Honored Contributor III
1,413 Views

try watching

nlinfo::tend

 

Jim Dempsey

0 Kudos
TiborKibedi1
Beginner
837 Views

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

0 Kudos
andrew_4619
Honored Contributor III
810 Views

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

0 Kudos
TiborKibedi1
Beginner
741 Views

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

 

0 Kudos
Reply