Gamestudio Links
Zorro Links
Newest Posts
Change chart colours
by 7th_zorro. 05/11/24 09:25
Data from CSV not parsed correctly
by dr_panther. 05/06/24 18:50
AUM Magazine
Latest Screens
The Bible Game
A psychological thriller game
SHADOW (2014)
DEAD TASTE
Who's Online Now
1 registered members (M_D), 1,430 guests, and 3 spiders.
Key: Admin, Global Mod, Mod
Newest Members
firatv, wandaluciaia, Mega_Rod, EternallyCurious, howardR
19050 Registered Users
Previous Thread
Next Thread
Print Thread
Rate Thread
Is there a way to watch local variables? #259824
04/07/09 22:00
04/07/09 22:00
Joined: Jul 2005
Posts: 192
Orange County
S
silencer Offline OP
Member
silencer  Offline OP
Member
S

Joined: Jul 2005
Posts: 192
Orange County
The only way I've found to track the values of variables (global) as I step through is by adding them to my watch list.

However it doesn't seem like I can watch local variables. So how can one track the value of locals while we step through???


AMD 64 x2 4400+ 2048mb DDR3200 NVidia 6800GS 256mb Soundblaster Audigy 2 A7 Commercial 7.07
Re: Is there a way to watch local variables? [Re: silencer] #259826
04/07/09 22:24
04/07/09 22:24
Joined: May 2008
Posts: 331
Lithuania, Vilnius
Jaxas Offline
Senior Member
Jaxas  Offline
Senior Member

Joined: May 2008
Posts: 331
Lithuania, Vilnius
Code:
var global_var;
...
action ...()
{
   var local_var;
   while(1)
   {
      global_var = local_var;
      wait(1);
   }
}
...

add global_var to watch list, and you'll track local variable value wink

Last edited by Jaxas; 04/07/09 22:27.

The smaller the bug, the harder it is to kill.
_________________________________________
Forklift DEMO (3dgs)
Re: Is there a way to watch local variables? [Re: Jaxas] #259834
04/07/09 23:14
04/07/09 23:14
Joined: Jul 2005
Posts: 192
Orange County
S
silencer Offline OP
Member
silencer  Offline OP
Member
S

Joined: Jul 2005
Posts: 192
Orange County
Is there another way other than that? haha


AMD 64 x2 4400+ 2048mb DDR3200 NVidia 6800GS 256mb Soundblaster Audigy 2 A7 Commercial 7.07
Re: Is there a way to watch local variables? [Re: silencer] #259835
04/07/09 23:16
04/07/09 23:16
Joined: Jul 2008
Posts: 170
Germany, near Mainz
Nicotin Offline
Member
Nicotin  Offline
Member

Joined: Jul 2008
Posts: 170
Germany, near Mainz
You can display it on a panel with "digit"

EDIT: No sorry this isn't right. You'd have to store it in a global too. So forget it xD

Last edited by Nicotin; 04/07/09 23:16.


Re: Is there a way to watch local variables? [Re: Nicotin] #259897
04/08/09 07:06
04/08/09 07:06
Joined: May 2008
Posts: 331
Lithuania, Vilnius
Jaxas Offline
Senior Member
Jaxas  Offline
Senior Member

Joined: May 2008
Posts: 331
Lithuania, Vilnius
Quote:
Is there another way other than that? haha

to hard to create some temp variable or what?

Last edited by Jaxas; 04/08/09 07:08.

The smaller the bug, the harder it is to kill.
_________________________________________
Forklift DEMO (3dgs)
Re: Is there a way to watch local variables? [Re: Jaxas] #260039
04/08/09 17:10
04/08/09 17:10
Joined: Jul 2005
Posts: 192
Orange County
S
silencer Offline OP
Member
silencer  Offline OP
Member
S

Joined: Jul 2005
Posts: 192
Orange County
No, it's not, but it just seems cumbersome and sloppy especially if you're tracking half a dozen values at a time through different files.

Last edited by silencer; 04/08/09 17:10.

AMD 64 x2 4400+ 2048mb DDR3200 NVidia 6800GS 256mb Soundblaster Audigy 2 A7 Commercial 7.07

Moderated by  HeelX, Lukas, rayp, Rei_Ayanami, Superku, Tobias, TWO, VeT 

Gamestudio download | chip programmers | Zorro platform | shop | Data Protection Policy

oP group Germany GmbH | Birkenstr. 25-27 | 63549 Ronneburg / Germany | info (at) opgroup.de

Powered by UBB.threads™ PHP Forum Software 7.7.1