- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
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.
Link Copied
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
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?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
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:
- Open Visual Studio
- Go to Extensions → Manage Extensions
- Search for “Fortran Expression Evaluator”
- Install (or update) Intel Corporation – Fortran Expression Evaluator
- Restart Visual Studio
But it does not help.
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page