In debugging my application I can happily enumerate values of local variables but cannot seem to enumerate globally defined parameters included through a USE statement. If I type the parameter name, say BORIS, into the watch window I get the value - Undefined variable BORIS. Is this the expected behaviour? Thanks ACAR.
1 解答
Set the option Fortran > Debugging > Information for PARAMETER constants > Used (or All if you prefer)
链接已复制
6 回复数
Set the option Fortran > Debugging > Information for PARAMETER constants > Used (or All if you prefer)
I've tried that Steve but it doesn't seem to work. Might be that I need to recompile the complete application but then if a change were made to the application properties that required full recompilation then presumably that would happen on building?
Typically, yes, when you change options all sources get recompiled. Does it still not work on a rebuild? I just tried this and it worked for me.
I have just done a rebuild and yes the application property change has taken affect - I can now enumerate globally defined parameters. This should surely have been flagged up when I requested a build of the application?
Yes, it should, and does when I try it.