|
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
Expert
|
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: Mahonroy]
#396716
03/09/12 13:12
03/09/12 13:12
|
Joined: Sep 2003
Posts: 6,861 Kiel (Germany)
Superku
Senior Expert
|
Senior Expert
Joined: Sep 2003
Posts: 6,861
Kiel (Germany)
|
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: Damocles]
#396720
03/09/12 13:48
03/09/12 13:48
|
Joined: Jan 2002
Posts: 4,225 Germany / Essen
Uhrwerk
Expert
|
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á
wdakfenixx
Junior Member
|
Junior Member
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
Expert
|
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...
|
|
|
Moderated by mk_1, Perro, rayp, Realspawn, Rei_Ayanami, rvL_eXile, Spirit, Superku, Tobias, TSG_Torsten, VeT
|