CT GunZ Server
Would you like to react to this message? Create an account in a few clicks or log in to continue.
CT GunZ Server

CT GunZ EN-Forums
 
HomeHome  PortalPortal  Latest imagesLatest images  SearchSearch  RegisterRegister  Ger Forums  GunZ Register  Server  VOTE please  Be Donator  Download CTGunZ  Log inLog in  

 

 Coding TuT 12

Go down 
3 posters
AuthorMessage
bossxd
BANNED
BANNED
bossxd


Male

Number of posts : 21
Location : usa
Points : 64
Character : Noname
GunZ Exp (nub/pro) :
Coding TuT 12 Left_bar_bleue0 / 1000 / 100Coding TuT 12 Right_bar_bleue

Registration date : 2009-04-12
Reputation : 0


Coding TuT 12 Empty
PostSubject: Coding TuT 12   Coding TuT 12 EmptyTue Apr 14, 2009 10:52 am

Simple debugging

Stop / start testing

Development environments offer a variety of complex debugging tools to use when the program does not do what you expect. A simple alternative, particularly for small programs, is to use comments, print statements and an early exit from the program to test the logic. If a problematic function is meant to return or modify some data, interrupt the code to print the output of the function and, optionally, quit the program to prevent bad data from causing further errors later in the program. This allows you to see exactly what the function is returning with real data as well as allowing you to make changes and see the effects. The program will need to be re-compiled for each test but by commenting out lines that have already been tested, you can isolate the function and the auxillary code that provides data to the function. As a further aid, consider only running the code with fixed input - instead of providing real data, comment out the auxillary code and set the variables manually before the function you want to test and print the changes afterwards.
Back to top Go down
Snake
Retired Staff
Snake


Male

Number of posts : 3572
Age : 31
Location : UK
Points : 3473
Character : Coding TuT 12 Snake11copy-1
GunZ Exp (nub/pro) :
Coding TuT 12 Left_bar_bleue99 / 10099 / 100Coding TuT 12 Right_bar_bleue

Registration date : 2009-02-02
Reputation : 27


Coding TuT 12 Empty
PostSubject: Re: Coding TuT 12   Coding TuT 12 EmptyTue Apr 14, 2009 2:50 pm

Keep up the good work.
Back to top Go down
Tittenfee
Retired Staff
Tittenfee


Warnings : 2.99
Male

Number of posts : 2522
Age : 30
Location : Austria, Vienna
Points : 2583
Character : Tittenfee, _NPC_
GunZ Exp (nub/pro) :
Coding TuT 12 Left_bar_bleue69 / 10069 / 100Coding TuT 12 Right_bar_bleue

Registration date : 2009-01-22
Reputation : 22


Coding TuT 12 Empty
PostSubject: Re: Coding TuT 12   Coding TuT 12 EmptyWed Apr 15, 2009 9:45 am

Keep up the leeching*
Back to top Go down
Snake
Retired Staff
Snake


Male

Number of posts : 3572
Age : 31
Location : UK
Points : 3473
Character : Coding TuT 12 Snake11copy-1
GunZ Exp (nub/pro) :
Coding TuT 12 Left_bar_bleue99 / 10099 / 100Coding TuT 12 Right_bar_bleue

Registration date : 2009-02-02
Reputation : 27


Coding TuT 12 Empty
PostSubject: Re: Coding TuT 12   Coding TuT 12 EmptyWed Apr 15, 2009 10:18 am

Yeah, you should give credits man..
Back to top Go down
Sponsored content





Coding TuT 12 Empty
PostSubject: Re: Coding TuT 12   Coding TuT 12 Empty

Back to top Go down
 
Coding TuT 12
Back to top 
Page 1 of 1
 Similar topics
-
» Coding TuT 11
» Coding tut
» Coding TuT 2
» Coding TuT 3
» Coding TuT 4

Permissions in this forum:You cannot reply to topics in this forum
CT GunZ Server :: Basket-
Jump to: