What is a bug?
Bug is an error in code that causes the product to fail to perform the intended function.
What is defect density?
Defect density is number of defects per line in a specific code.
What is debugging?
Debugging is locating the bug and fixing it. Testers find the defect and report it to the developer. Developer locates the bug that caused the reported defect and fixes it.