Programming C, C++, Java, PHP, Ruby, Turing, VB
Computer Science Canada 
Programming C, C++, Java, PHP, Ruby, Turing, VB  

Username:   Password: 
 RegisterRegister   
 GRRR! Vars?
Index -> Programming, Turing -> Turing Help
View previous topic Printable versionDownload TopicSubscribe to this topicPrivate MessagesRefresh page View next topic
Author Message
BioHazardousWaste




PostPosted: 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?
Sponsor
Sponsor
Sponsor
sponsor
Tony




PostPosted: Mon Mar 29, 2004 4:30 pm   Post subject: (No 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
Latest from compsci.ca/blog: Tony's programming blog. DWITE - a programming contest.
sport




PostPosted: 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.
BioHazardousWaste




PostPosted: Tue Mar 30, 2004 8:54 am   Post subject: (No subject)

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




PostPosted: Tue Mar 30, 2004 10:20 am   Post subject: (No 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
Latest from compsci.ca/blog: Tony's programming blog. DWITE - a programming contest.
Display posts from previous:   
   Index -> Programming, Turing -> Turing Help
View previous topic Tell A FriendPrintable versionDownload TopicSubscribe to this topicPrivate MessagesRefresh page View next topic

Page 1 of 1  [ 5 Posts ]
Jump to:   


Style:  
Search: