Gamestudio Links
Zorro Links
Newest Posts
Zorro 2.70
by jcl. 09/29/25 09:24
optimize global parameters SOLVED
by dBc. 09/27/25 17:07
ZorroGPT
by TipmyPip. 09/27/25 10:05
assetHistory one candle shift
by jcl. 09/21/25 11:36
Plugins update
by Grant. 09/17/25 16:28
AUM Magazine
Latest Screens
Rocker`s Revenge
Stug 3 Stormartillery
Iljuschin 2
Galactic Strike X
Who's Online Now
4 registered members (NewbieZorro, Grant, TipmyPip, AndrewAMD), 13,346 guests, and 5 spiders.
Key: Admin, Global Mod, Mod
Newest Members
krishna, DrissB, James168, Ed_Love, xtns
19168 Registered Users
Previous Thread
Next Thread
Print Thread
Rate Thread
Page 2 of 3 1 2 3
Re: How to use the debugger? [Re: Mahonroy] #396687
03/09/12 01:06
03/09/12 01:06
Joined: Jan 2002
Posts: 4,225
Germany / Essen
Uhrwerk Offline
Expert
Uhrwerk  Offline
Expert

Joined: Jan 2002
Posts: 4,225
Germany / Essen
Are you aware only global variables can be watched?


Always learn from history, to be sure you make the same mistakes again...
Re: How to use the debugger? [Re: Uhrwerk] #396690
03/09/12 04:07
03/09/12 04:07
Joined: Sep 2003
Posts: 353
Mahonroy Offline OP
Senior Member
Mahonroy  Offline OP
Senior Member

Joined: Sep 2003
Posts: 353
So whats the correct method to debug then? Doesn't seem too user friendly


NATIO Released! Check it out at http://mahonroy.home.comcast.net/natio.htm -Matt AMD 1.2 Ghz Thunderbird 512 Meg Ram GeForce 2 Ultra 64 Meg DDR Using A5 Professional
Re: How to use the debugger? [Re: Mahonroy] #396691
03/09/12 04:20
03/09/12 04:20
Joined: Jan 2003
Posts: 4,305
Damocles Offline
Expert
Damocles  Offline
Expert

Joined: Jan 2003
Posts: 4,305
You could write the interesting variables to the output log.
And watch them in realtime. (Thus also local variables)

I never use a debugger.

Re: How to use the debugger? [Re: Damocles] #396714
03/09/12 13:06
03/09/12 13:06
Joined: Sep 2003
Posts: 353
Mahonroy Offline OP
Senior Member
Mahonroy  Offline OP
Senior Member

Joined: Sep 2003
Posts: 353
How do I do that? Did a search in the manual and nothing comes up


NATIO Released! Check it out at http://mahonroy.home.comcast.net/natio.htm -Matt AMD 1.2 Ghz Thunderbird 512 Meg Ram GeForce 2 Ultra 64 Meg DDR Using A5 Professional
Re: How to use the debugger? [Re: Mahonroy] #396716
03/09/12 13:12
03/09/12 13:12
Joined: Sep 2003
Posts: 6,861
Kiel (Germany)
Superku Offline
Senior Expert
Superku  Offline
Senior Expert

Joined: Sep 2003
Posts: 6,861
Kiel (Germany)
Quote:
I never use a debugger.

Same here, never used the debug run. I only use DEBUG_VAR, draw_quad, draw_text, beep, diag_var and diag.


"Falls das Resultat nicht einfach nur dermassen gut aussieht, sollten Sie nochmal von vorn anfangen..." - Manual

Check out my new game: Pogostuck: Rage With Your Friends
Re: How to use the debugger? [Re: Superku] #396717
03/09/12 13:23
03/09/12 13:23
Joined: Jan 2003
Posts: 4,305
Damocles Offline
Expert
Damocles  Offline
Expert

Joined: Jan 2003
Posts: 4,305
As said you can use the draw text, or popup windows for showing realtime data. (printf)

What gamestudio is missing (since I know it) is a propper
output to the commandline, or a debug multiline logger.

Its in demand for years.

You can help yourself by using a customly written Log viewer.

Re: How to use the debugger? [Re: Damocles] #396720
03/09/12 13:48
03/09/12 13:48
Joined: Jan 2002
Posts: 4,225
Germany / Essen
Uhrwerk Offline
Expert
Uhrwerk  Offline
Expert

Joined: Jan 2002
Posts: 4,225
Germany / Essen
@Superku, Damocles: Same here. The debugger is so useless executing code with it takes longer than doing good guesses and using print_whatever functions. The fact that SED crashes when the program crashes doesn't make it more usefull. ^^


Always learn from history, to be sure you make the same mistakes again...
Re: How to use the debugger? [Re: Mahonroy] #396742
03/09/12 23:00
03/09/12 23:00
Joined: Aug 2011
Posts: 58
Colombia/Bogotá
W
wdakfenixx Offline
Junior Member
wdakfenixx  Offline
Junior Member
W

Joined: Aug 2011
Posts: 58
Colombia/Bogotá
The watch area only read global variables, if you need a local variable you must create a global variable, like var ASD;, then, where the local variable is write "ASD = local_variable;", and finally put the watch to ASD


CAUTION :The content above could blow your mind
Re: How to use the debugger? [Re: wdakfenixx] #396751
03/10/12 01:24
03/10/12 01:24
Joined: Jan 2002
Posts: 4,225
Germany / Essen
Uhrwerk Offline
Expert
Uhrwerk  Offline
Expert

Joined: Jan 2002
Posts: 4,225
Germany / Essen
That is pretty error prone as multiple instances of functions can run in the same frame. I wouldn't recommend this technique.


Always learn from history, to be sure you make the same mistakes again...
Re: How to use the debugger? [Re: Uhrwerk] #397058
03/13/12 22:38
03/13/12 22:38
Joined: Sep 2003
Posts: 353
Mahonroy Offline OP
Senior Member
Mahonroy  Offline OP
Senior Member

Joined: Sep 2003
Posts: 353
Ok I added 2 global variables (e.g. outside of the function)
var STARTX;
var STARTY;
I then have this in the function:
STARTX = iGenerateStart_X;
STARTY = iGenerateStart_Y;
I then added a watch for both STARTX and STARTY, start in debug mode, step through each line... nothing... it says "Not Available"


NATIO Released! Check it out at http://mahonroy.home.comcast.net/natio.htm -Matt AMD 1.2 Ghz Thunderbird 512 Meg Ram GeForce 2 Ultra 64 Meg DDR Using A5 Professional
Page 2 of 3 1 2 3

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