Use vim with your favorite debugger.