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

Anirban Mondal 1 Reputation point
2020-12-16T22:48:22.547+00:00

Hello!

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 b​reakpoint at gap. But I ​am failing to watch the value and it is showing the error: identifier "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:

  1. file structure.pdf
  2. snapshot of the microsoft visual studio screen before pressing start button.jpeg
  3. 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

48884-file-structure.pdf48864-snapshot-of-the-microsoft-visual-studio-screen-bef.jpg48885-snapshot-of-the-microsoft-visual-studio-screen-aft.jpg

Developer technologies Visual Studio Debugging
{count} votes

1 answer

Sort by: Most helpful
  1. GiulioA 1 Reputation point
    2021-01-25T22:37:24.427+00:00

    @Anirban Mondal Did you solve the problem?


Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.