How to easily find the error's & solved it? | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
+ 3

How to easily find the error's & solved it?

10th Aug 2018, 10:47 AM
Anjali Dubey
2 Answers
+ 2
it takes a bit but the error messages are your friend generally they point you to the location that the compiler doesnt like, but be warned their are times when you do something the compiler just completely doesnt understand and points you in the wrong direction, my advice is write a small program that works and then start messing it up so you can see what errors occur, lose a semicolon, delete a parentheses sign, type your variable name different than it should be, forget a keyword in a definition, this will help you learn the exceptions in a controlled manner. then there are also bugs which are harder to track down, only thorough testing and using a debugger. a bug is when your program runs but inaccurate data is displayed so for example you type x=5 y=7 x+y outputs ten for some reason.
10th Aug 2018, 10:53 AM
Robert Atkins
Robert Atkins - avatar
0
ooo😮
10th Aug 2018, 10:55 AM
Anjali Dubey