Debugging is isolating the problem area in the code done by a developer whereas Testing is identifying the bug in an application and done by a tester.
Testing is to find out defects while using a product whereas debugging is to reach the part of the code causing failure.