Gamestudio Links
Zorro Links
Newest Posts
MinMax function on History t6 file
by LucasJoshua. 11/21/26 14:28
What are you working on?
by rayp. 11/20/26 18:10
FXCM => AVA Trade Plugin???
by Martin_HH. 11/17/26 17:02
contractUpdate() is filtering if >2 rows
by mistery. 11/09/26 12:06
New Zorro version 3.15
by jcl. 11/09/26 09:24
Removing outliers from files
by jcl. 11/04/26 10:30
[MED] Import from FBX (2010) missing!!!
by rayp. 11/03/26 14:33
AUM Magazine
Latest Screens
Dorifto samurai
Shadow 2
Rocker`s Revenge
Stug 3 Stormartillery
Who's Online Now
5 registered members (LucasJoshua, Grant, EvanTJ, EW_bytes, 1 invisible), 37,206 guests, and 3 spiders.
Key: Admin, Global Mod, Mod
Newest Members
EvanTJ, rht, MaliceTheMaker, Haitao_Ren, JimSimons
19250 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 | 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