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

"Identifier is undefined" in "Watch" during debugging

jirina
New Contributor I
8,383 Views

I am getting the message "identifier "variable_name" is undefined" in the column "Value" of the "Watch" window during debugging. This message is shown both for subroutine/function arguments, no matter is they are scalar variables or arrays, and for local scalars.

This seems to be a random behavior: while I was able to see expected values in the morning, I am getting the message in the afternoon. Nothing changed on my computer; there were no updates to Windows, Visual Studio 2022 or Intel oneAPI 2025.2.0. Also, there were no changes of the solution/project, neither in its settings, nor in the source code, nor in the compiler (I am using IFX).

Restarting the computer, restarting Visual Studio, rebuilding the solution did not help.

Is there anything I can try to make "Watch" display values of scalars and arrays?

I should add that I have already experienced this behaviour in previous versions of oneAPI, but only for arrays, and what helped in some cases was to restart the debugger. This does not help now.

0 Kudos
22 Replies
netphilou31
New Contributor III
268 Views

Not sure, I am using VS version 17.14.3 and got the issue even if I did not check the uppercase variables.

 

0 Kudos
Analex
Beginner
148 Views

Same issue with VS v17.9.6 and v17.12.4, Intel Base/HPC toolkit 2025.2. Repairing the Intel Base toolkit usually fixes it but it takes forever! Happens intermittently after running specific projects, so those are quarantined for now, no clue why they're different. Installing the Fortran Essentials did not help and the uppercase variables don't seem to help long term either...really frustrating.

0 Kudos
Reply