replica nfl jerseysreplica nfl jerseyssoccer jerseyreplica nfl jerseys forums.silverfrost.com :: View topic - Change Variable values at debug time in Plato?
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 

Change Variable values at debug time in Plato?

 
Post new topic   Reply to topic    forums.silverfrost.com Forum Index -> Support
View previous topic :: View next topic  
Author Message
m.burkhardt



Joined: 02 Sep 2008
Posts: 26

PostPosted: Fri Sep 09, 2011 11:24 am    Post subject: Change Variable values at debug time in Plato? Reply with quote

Is it possible to change Variable values at debug time?
I'll make a break and after arriving this break I'll change the content of an variable value! Is this possible in plato?
I receive the info that this is NOT possible in VS201 environment in FTN95 Silverfrost Version 6.
Is this right?

Kind regards
Michael
Back to top
View user's profile Send private message Send e-mail MSN Messenger
jjgermis



Joined: 21 Jun 2006
Posts: 404
Location: N�rnberg, Germany

PostPosted: Fri Sep 09, 2011 12:17 pm    Post subject: Reply with quote

This is an interesting question! The most debuggers that I have used in the past do not have this option. Why not just add a line of code to change the variable to the desired value?
Back to top
View user's profile Send private message
PaulLaidler
Site Admin


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

PostPosted: Sat Sep 10, 2011 9:08 am    Post subject: Reply with quote

I don't know of any way to change the variables via SDBG at runtime (other than via the code).
Back to top
View user's profile Send private message AIM Address
brucebowler
Guest





PostPosted: Tue Sep 13, 2011 1:31 pm    Post subject: Reply with quote

Unless I'm missing something, doesn't "Tools>>command prompt..." let you do that with "let variable=expression"?

Bruce
Back to top
PaulLaidler
Site Admin


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

PostPosted: Tue Sep 13, 2011 2:53 pm    Post subject: Reply with quote

Yes you are right. I had forgotten about that feature.
Back to top
View user's profile Send private message AIM Address
jjgermis



Joined: 21 Jun 2006
Posts: 404
Location: N�rnberg, Germany

PostPosted: Tue Sep 13, 2011 3:02 pm    Post subject: Reply with quote

It works - a feature I never knew! One should however use the correct syntax for the command.
Back to top
View user's profile Send private message
felix



Joined: 09 Aug 2011
Posts: 5

PostPosted: Wed Nov 02, 2011 10:42 pm    Post subject: Reply with quote

I was hoping for something like a compiler directive like "EQUATE" in other languages, especially assemblers. Consider....

EQUATE (value,80)

OPEN (UNIT=LU19,FILE='FILEADIR.TXT',RECL=value,ERR=8, &
ACCESS="DIRECT",FORM="FORMATTED",STATUS="NEW")
Back to top
View user's profile Send private message
PaulLaidler
Site Admin


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

PostPosted: Thu Nov 03, 2011 9:30 am    Post subject: Reply with quote

In what way is that different from a simple Fortran assignment statement..

value = 80
Back to top
View user's profile Send private message AIM Address
LitusSaxonicum



Joined: 23 Aug 2005
Posts: 2402
Location: Yateley, Hants, UK

PostPosted: Thu Nov 03, 2011 2:24 pm    Post subject: Reply with quote

Paul,

Just an idea: does he mean the EQUATE bit to be something you type into the debugger, and the following Fortran code to be how the program uses it?

E
Back to top
View user's profile Send private message
felix



Joined: 09 Aug 2011
Posts: 5

PostPosted: Thu Nov 03, 2011 5:58 pm    Post subject: Reply with quote

Sorry, I chose the wrong variable in the Open statement. Should have been the ERR instead of the RECL.

I = 80
OPEN.................ERR=I.........

E:\FORTRAN JOBS\JOINABMM.F95(260) : error 525 - Invalid character 'I' after ERR
E:\FORTRAN JOBS\JOINABMM.F95(260) : error 517 - Labels must not be zero (0)
Compilation failed.

The EQUATE (or similar) statement should be universal across all "languages" including scripts. The purpose of the EQUATE statement is the exchange of SYMBOLS, not necessarily values like was exemplified by Paul.

An EQUATE statement immediately after the opening identification statement (PROGRAM,SUBROUTINE,FUNCTION,etal) of the program would take care of this problem as shown. Better yet, the statement should be a compiler directive instead and be among the first lines the compiler sees BEFORE any language statements.
Back to top
View user's profile Send private message
PaulLaidler
Site Admin


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

PostPosted: Fri Nov 04, 2011 8:44 am    Post subject: Reply with quote

The FTN95 help file (FTN95.chm) describes Conditional Compilation (VPARAM and SPARAM) and also C-Style preprocessing (#define etc).
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 -> Support 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