Quantcast
Channel: Intel® Fortran Compiler
Viewing all articles
Browse latest Browse all 3270

Visual debugging of #define variable

$
0
0

I have a line like this:

STRUCT(2)%VAR = 1

I use fpp to make the code a little more readable with

#define VAR  STRUCT(2)%VAR

and now the code is

VAR = 1

The preprocessor expands this to the full line and everything works fine.

However, when I am debugging, I can no longer hold the cursor over "VAR" and see the value in a popup, nor can I put "VAR" in a watch window.  Is there a way to have the debugger know about expanding "VAR" like the preprocessor does?


Viewing all articles
Browse latest Browse all 3270

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>