My personal favorite has always been Vim on the left and a command line or web browser (depending on the type of code) on the right. Alt-tab from one to the other.
Vim gives me all the power I need for fast efficient editing. As for debugging: never under estimate the power of the print command.