Test the software, debug the software, test the software, debug the software... repeat as often as necessary, until the software is clean and bug free –or at least as close to bug-free as you can get ...