How is testing and debugging related to each other?
Apart from few basic differences like testing is performed by testers or
QAs and debugging is done by developers this is important to know the aim of the testing is to identify the bugs in the application and debugging is done to reach to the root cause of that bug.
Based on the debugging result, fix approach is defined and fix is implemented.