Upgrading to imporve the code. Debugging is the process 2where you fix errors and mistakes, not improving it. Debugging is basically fixing glitched and such or finding the block of code in which an error is present and fixing that. So its not a process where one upgrades but rather fixes.