-1

Common Fortran variables are not visible when debugging (full, no optimization) in Visual studio 2019. It says "undefined variables" when hovering. Code runs fine. Local variables are visible. Is there way for me to be able to visualize the values of the Common variables while debugging?

enter image description here

enter image description here

enter image description here

3
  • Have you reviewed the following two questions? The second question is referenced in the first. stackoverflow.com/questions/68287991/… stackoverflow.com/questions/10264329/…
    – FJones
    Commented Apr 23 at 2:32
  • 1
    @FJones Those answers speak about module variables. Are variables from common blocks referenced in the same way? The question is arguably not very clear but I would understand "Common Fortran variables" as variables in commom blocks. Commented 2 days ago
  • At one point, there was a known issue with debugging with Intel Fortran in Visual Studio. In order to see variables, you would need to make a change to the option to "Load debug symbols in external process (Native only)" in the debugging settings. I think the fix was to turn this option off, but I'm not 100% certain, it's been a while since I had to deal with it. You might try flipping that option and see if it helps.
    – Craig
    Commented 2 days ago

0

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.