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

Observation: If ONLY used in subroutine then variables will NOT display in DEBUG

bmchenrync
Nouveau contributeur I
1 084 Visites

I was having issues with being able to view variables in Debug in VS 2022 v 2026 in certain subroutines

and couldn't figure out why?

did the ole 'all CAPS' but didn't fix it...

and then i noticed/discovered that

in VS 2022/2026

IF you use ONLY to specify the ONLY variables in a MOD used in a subroutine

then in DEBUG

VS will NOT display the variable value and in Watch window is will say undefined!

 

Once i commented out all ONLY specifications

Then ALL variables used in the subroutine reveal their values!

 

strange?

Or is this the appropriate behavior with 2026/2022

 

 

 

1 Solution
bmchenrync
Nouveau contributeur I
219 Visites

With update out and some folks saying things not working and since i started this topic

I tested (why not gamble, eh?!)

DEBUG WATCH/CHECK VARIABLE VALUES WORK

Test run on my win10 computer (so expect all will work on my win11 computer too which i will check later or tomorrow)

  • Visual Studio 2026 18.5.2
  • INTEL Fortran 2026.0.0.566
  • FEE_VSIX_V17

A right mouse hover over a variable produces variable value if Module without USE statement

Module name::Variable lists value in watch window for Modules with USE statement

BRAVO!

Great work INTEL!

 

Voir la solution dans l'envoi d'origine

0 Compliments
22 Réponses
Steve_Lionel
Contributeur émérite III
43 Visites

You should be able to click in the three dots in the upper right of your post and select Edit.

0 Compliments
bmchenrync
Nouveau contributeur I
23 Visites

unfortunately not on my menu by the 3 dots when logged in

Répondre