I have an allocatable integer array declared and allocated within a block construct. Whilst the code works OK the debugger says it is an undefined variable and will thus not evaluate it. Is this a known problem? Visual Fortran Compiler 220.127.116.11/ Microsoft Visual Studio Community 2017
Hi I can confirm this uncomplete integration of VS debugger. I filed in the past many of these issues. But I gave up... With every new VS version new things come up or old issues are back. If you will be brave and have the time, you should file this bug.
As FF suggested in another thread, Intel would make many friends, if they will support VS code integration officially.
What you might try to do to aid in debugging is either
a) In the block, after allocation, add ASSOCIATE(dYourArray => YourArray), then examine the data using dYourArray
b) in the outer scope add as an example: REAL, POINTER :: dYourArray(:)
and in the local block add TARGET attribute to YourArray. and after allocation add dYourArray => YourArray
One of the two methods should get you by until bug is fixed.