Use visual-line-mode and debug-on-error.