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 

Variable Tracking

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



Joined: 02 Sep 2008
Posts: 210

PostPosted: Fri Dec 19, 2008 10:42 pm    Post subject: Variable Tracking Reply with quote

I would like to "trap" a variable at certain intervals and review its value. How does on do this in Silverfrost Fortran? Sid Kraft
Back to top
View user's profile Send private message
PaulLaidler
Site Admin


Joined: 21 Feb 2005
Posts: 7916
Location: Salford, UK

PostPosted: Sat Dec 20, 2008 9:09 am    Post subject: Reply with quote

It is not clear to me what you are looking for.
Why not just PRINT the value when you want it.
Alternatively you can set break points in the debugger at points where you want to see the value.
Back to top
View user's profile Send private message AIM Address
stfark1



Joined: 02 Sep 2008
Posts: 210

PostPosted: Sat Dec 20, 2008 2:05 pm    Post subject: Re: Variable Tracking Reply with quote

stfark1 wrote:
I would like to "trap" a variable at certain intervals and review its value. How does on do this in Silverfrost Fortran? Sid Kraft
To Clarify: Is there a way to show the value of a variable when it changes without directly displayin it? I.E. a program "stop and display" automatically when value changes? "watch" or?
Back to top
View user's profile Send private message
stfark1



Joined: 02 Sep 2008
Posts: 210

PostPosted: Sat Dec 20, 2008 2:06 pm    Post subject: Re: Variable Tracking Reply with quote

stfark1 wrote:
stfark1 wrote:
I would like to "trap" a variable at certain intervals and review its value. How does on do this in Silverfrost Fortran? Sid Kraft
To Clarify: Is there a way to show the value of a variable when it changes without directly displayin it? I.E. a program "stop and display" automatically when value changes? "watch" or?
?
Back to top
View user's profile Send private message
PaulLaidler
Site Admin


Joined: 21 Feb 2005
Posts: 7916
Location: Salford, UK

PostPosted: Sat Dec 20, 2008 5:24 pm    Post subject: Reply with quote

When you use the debugger SDBG, you can watch and set a write break on a given variable. This means than, went you set the program to run, there will be an automatic break each time the variable changes.

Start off by learning how to use the debugger and then right click on the variable in the program code and select the appropriate menu items.
Back to top
View user's profile Send private message AIM Address
Display posts from previous:   
Post new topic   Reply to topic    forums.silverfrost.com Forum Index -> Plato 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