Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Displaying module variables in Visual Studio

Status
Not open for further replies.

xwb

Programmer
Jul 11, 2002
6,828
GB
How do I display module variables in Visual Studio with IVF.
Code:
module test
   integer:: xxx
contains
   subroutine init
      xxx = 20
      return
   end subroutine init
end module test
program main
   use test
   call init
end program
If I set a breakpoint at the return statement, how do I find out what xxx is?

I've tried xxx, test%xxx, test.xxx, this%xxx, this.xxx. Any suggestions would be welcome.
 
Never mind - worked it out. It is test::xxx

Presumably Visual Studio is treating the module as a C++ namespace.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top