Intel® Fortran Compiler
Build applications that can scale for the future with optimized code designed for Intel® Xeon® and compatible processors.
Announcements
Welcome to the Intel Community. If you get an answer you like, please mark it as an Accepted Solution to help others. Thank you!
26733 Discussions

Problem in watching value in debug mode of fortran code in Visual studio 2019

Ani_mondal_2020
Beginner
1,593 Views
I am running my fortran code on Intel visual studio 2019 using Intel fortran compiler. I want to watch the value of any variable inside the code, lets say, value of the variable gap within the file named PD_ph_f_cera_fort.f90, after applying a breakpoint at gap. But I am failing to watch the value and it is showing the erroridentifier "gap" is undefined inside the watch window below. Can you please guide me finding why am I facing the issue and how can I watch the value after applying breakpoint in debugging mode? 
I am attaching three things with this mail for your convenience:
  • file structure.pdf
  • snapshot of the microsoft visual studio screen before pressing start button.jpeg
  • snapshot of the microsoft visual studio screen after pressing start button with debug mode.jpeg
 
Waiting for your valuable reply as early as possible.
Please ask me if you have any queries.
 
Thanks in advance
Anirban
0 Kudos
1 Solution
Steve_Lionel
Black Belt Retired Employee
1,543 Views

Why are you installing the beta? The oneAPI HPC toolkit (with Fortran) is released.

View solution in original post

8 Replies
Steve_Lionel
Black Belt Retired Employee
1,580 Views

That the variable name shows as lowercase tells me that the Fortran debug integration isn't being used. Try an uninstall and reinstall of the Intel compiler.

Ani_mondal_2020
Beginner
1,554 Views

After re-installing Intel Fortran compiler(Intel Fortran Compiler(Beta) for Windows), the same problem exists. I have installed the following files apart from Microsoft visual studio 2019 to run and debug my Fortran code from the site (https://software.intel.com/content/www/us/en/develop/articles/oneapi-standalone-components.html#fort... 

  1. Intel Fortran Compiler(Beta) for Windows
  2. Intel Open Volume Kernel Library for Windows
  3. Intel openAPI Math Kernel Library for Windows
  4. Intel oneAPI Data Analytics Library for Windows
  5. Intel Inspector for Windows

I have downloaded all files from installer 'Local'.

Can you please tell me that all the files mentioned above are required to install or not to watch the value in debugging mode? And also guide me if any other files are needed to be installed from any other source to solve my purpose.

Steve_Lionel
Black Belt Retired Employee
1,544 Views

Why are you installing the beta? The oneAPI HPC toolkit (with Fortran) is released.

View solution in original post

Ani_mondal_2020
Beginner
1,519 Views

After installing oneAPI HPC Toolkit with openAPI Base Toolkit, my problem has resolved. Thanks!

yudtu
Beginner
1,389 Views

I have the same problem. I can not get the debug watch information.

I have installed the toolkit

yudtu_0-1612470390792.png

My visual studio version is 2019 version 16.8.4.

See the below. I create a simple program, but I cannot watch the information.

yudtu_1-1612470629754.png

 

 

Steve_Lionel
Black Belt Retired Employee
1,373 Views

Please show a screenshot of the Locals window.

yudtu
Beginner
1,355 Views

the problem is solved for now after I unstall and reinstall everything, VS, base and Hpc. 

lpmorenoc
Beginner
963 Views

I have the same problem after I installed oneAPI. Does it really the only solution to install again everything?

Reply