forums.silverfrost.com Forum Index forums.silverfrost.com
Welcome to the Silverfrost forums
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

Debugging arrays

 
Post new topic   Reply to topic    forums.silverfrost.com Forum Index -> General
View previous topic :: View next topic  
Author Message
hevaaga



Joined: 02 Aug 2007
Posts: 3

PostPosted: Tue Aug 21, 2007 8:48 am    Post subject: Debugging arrays Reply with quote

I'm trying to look at Fortran arrays in Visual Studio 2003 while debugging, but only the first element is visible. Is there a trick to see the whole array?

Someone told me to write like this in a watch window:

A, 10
(Where A is the name of the variable)

But this doesn't work. Any suggestions?

Hans Egil
Back to top
View user's profile Send private message
Robert



Joined: 29 Nov 2006
Posts: 444
Location: Manchester

PostPosted: Thu Aug 23, 2007 7:06 pm    Post subject: Reply with quote

It should just expand. Is this Win32 or .NET?
Back to top
View user's profile Send private message Visit poster's website
hevaaga



Joined: 02 Aug 2007
Posts: 3

PostPosted: Fri Aug 24, 2007 7:41 am    Post subject: Reply with quote

It's .NET. I found out if I declare an array like this

REAL a(*,*)

it's possible to see what it contains.
Back to top
View user's profile Send private message
Robert



Joined: 29 Nov 2006
Posts: 444
Location: Manchester

PostPosted: Sat Aug 25, 2007 2:25 pm    Post subject: Reply with quote

How was it defined when it was not fully visible?
Back to top
View user's profile Send private message Visit poster's website
hevaaga



Joined: 02 Aug 2007
Posts: 3

PostPosted: Mon Aug 27, 2007 8:19 am    Post subject: Reply with quote

It was defined like this:

REAL a(n,n)

or

REAL a(100,100)

or

REAL a(:,Smile
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    forums.silverfrost.com Forum Index -> General All times are GMT + 1 Hour
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group