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

debugging not working

dqian
Beginner
216 Views

I am debugging a big FORTRAN code inside Visual Studio 2022. I have defined lots of structures with the elements of single variables as well as multidimensional arrays. When I debug the code and Add Watch the Structures, it shows values of the single variables, but says "<unable to read memory>".

 

On another computer, it cannot even display any of the variables on Add Watch.

2 Replies
witwald
New Contributor II
213 Views

At the very least, can you supply a small snippet of your code where the problem is occurring? Otherwise we are sort of flying blind here. Ideally, if you would kindly provide a small self-contained program that demonstrates the issue, that would be very helpful. Maybe even a screenshot or two?

dqian
Beginner
110 Views

I know this is a known debugger integration issue between Intel oneAPI Fortran (IFX/IFORT) and Visual Studio, specifically affecting arrays inside derived types (Fortran structures) in the Watch / Locals windows. The code is correct—the debugger is the problem.

 

I have already tried these steps:

  1. Open Visual Studio
  2. Go to Extensions → Manage Extensions
  3. Search for “Fortran Expression Evaluator”
  4. Install (or update) Intel Corporation – Fortran Expression Evaluator
  5. Restart Visual Studio

But it does not help.

0 Kudos
Reply