Developers kill the bugs and then make programs that are free of all problems.
As developers kill the bugs, they incorporate the solutions into a daily build of the program and test the build to make certain the solutions don't cause additional bugs.