- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
I want to look at a module variable, so following the documented technique for doing this, in the Watch window I type
MODULENAME::VARIABLENAME
The debugger replies that the variable is not recognised, even though the variable is defined as a PARAMETER in the module and calculations up to that point use its value.
The module is in a separate Fortran file. Is that the problem?
I am using VS 2012 Pro.
Link Copied
2 Replies
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Ah, a PARAMETER? When you built the module, did you use the /debug-parameters switch?
By default, parameter names only "live" during the compilation stage, and are not put into the debug symbol table. The switch above will change that default.
--Lorri
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Thanks, Lorri.
Reply
Topic Options
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page