Silverfrost Forums

Welcome to our forums

Variable Tracking

19 Dec 2008 9:42 #4116

I would like to 'trap' a variable at certain intervals and review its value. How does on do this in Silverfrost Fortran? Sid Kraft

20 Dec 2008 8:09 #4119

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.

20 Dec 2008 1:05 #4120

Quoted from stfark1 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?

20 Dec 2008 1:06 #4121

Quoted from stfark1

Quoted from stfark1 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? ?

20 Dec 2008 4:24 #4123

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.

Please login to reply.