in reply to Debugger: I must be missing something

For emacs, open the script you want to debug and then Meta-x perldb<RET>. It's pretty nice. You get one frame with the normal debugger prompt and the other shows the source, current line of execution etc. You can also then use emacs text editing facilities on your perl debug history.

Does anyone know of anything similar for vim? (looks like vim.org is having MySQL problems at the moment).