View previous topic :: View next topic |
Author |
Message |
stfark1
Joined: 02 Sep 2008 Posts: 210
|
Posted: Fri Dec 19, 2008 10:42 pm Post subject: Variable Tracking |
|
|
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 |
|
|
PaulLaidler Site Admin
Joined: 21 Feb 2005 Posts: 7928 Location: Salford, UK
|
Posted: Sat Dec 20, 2008 9:09 am Post subject: |
|
|
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 |
|
|
stfark1
Joined: 02 Sep 2008 Posts: 210
|
Posted: Sat Dec 20, 2008 2:05 pm Post subject: Re: Variable Tracking |
|
|
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 |
|
|
stfark1
Joined: 02 Sep 2008 Posts: 210
|
Posted: Sat Dec 20, 2008 2:06 pm Post subject: Re: Variable Tracking |
|
|
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 |
|
|
PaulLaidler Site Admin
Joined: 21 Feb 2005 Posts: 7928 Location: Salford, UK
|
Posted: Sat Dec 20, 2008 5:24 pm Post subject: |
|
|
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 |
|
|
|