Computer Science Canada

GRRR! Vars?

Author:  BioHazardousWaste [ Mon Mar 29, 2004 3:56 pm ]
Post subject:  GRRR! Vars?

How do I show vars in turing 4.0.5? It's really annoying, cuz I got a problem with a shitload of vars in it, and it would be nice to see them all. I see show vars on the debugger menu, but it's always greyed out... any ideas?

Author:  Tony [ Mon Mar 29, 2004 4:30 pm ]
Post subject: 

eh...

put varName Laughing

I'm serious though... just place a bunch of put statements inside your loops and monitor the variables. Placing a delay might help you read the output. Having a detailed description might make it easier to read
code:

loop
...
locate(1,1)
put counter ,"th step in the program"
put "current position is : ", x, " / ", y
put "another stat is : ", stat
delay(1000) %one second to read over data
...
end loop


You can then just comment out the code.

Such technique allows you to monitor exactly what you want, when you want

Author:  sport [ Mon Mar 29, 2004 5:49 pm ]
Post subject:  4.0.5

Yeah it really sucks that 4.0.5 does not have show vars, and fullscreen.

Author:  BioHazardousWaste [ Tue Mar 30, 2004 8:54 am ]
Post subject: 

Are you serious? I have to monitor like 20 vars in this procedure... Evil or Very Mad

Author:  Tony [ Tue Mar 30, 2004 10:20 am ]
Post subject: 

well that's a shame that you don't know what's happening to the whole 20 variables Confused It's usually 1 or 2 that have problems...

but I guess debugging comes with practice


: