Exceptions! enable checking of clr exceptions
Make use of your debugger, and sometimes it’s better to fix the symtoms, save time if you can.
upgrade your hardware to make debugging smoothly, it’s frustrating if everything is slowww
always refactor the code first, break it into smaller pieces and rename variables, don’t stress your brain
print out exceptions and errors, don’t rely too much on the debugger, those are unreliable at times.
make small changes one at a time, dont make too many changes unless you are sure.
learn SQL, group by, join, etc. It helps to fix performance problems, also review your algorithm complexity theories.
Use WinMerge to check for differences in pieces of code when trying to eliminate duplicates of code