What is debugging? | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
+ 1

What is debugging?

i know that debugging means making code error free but how is there an error if it is compiled? and how debugging is done?

20th Jul 2016, 7:07 PM
Shayan
Shayan - avatar
2 Answers
0
a "bug" doesn't always mean compilation errors. It can be anything like using an integer for character input resulting in an infinite spew of characters to the screen or simply a security flaw (hopefully)you found. A bug is pretty much anything you didn't intend for the program to do, good or bad. Debugging (if not compiling )is done by going through the source code and checking for compliance usually with data types and sufficient accessing permissions. debugging(if compiled) is done in a multitude of ways. checking for memory leaks, inputting bad data. inputting bad data. essentially just try to break your program and then fix it, and thus you have debugging.
20th Jul 2016, 8:07 PM
destro
0
Fun fact, the term "software bug" comes from the ENIAC where they emitted LOTS of heat and attracted moths. A moth got into the computer and was messing around with signals, it was later recorded as a software bug.
20th Jul 2016, 8:07 PM
destro