Revert "Disable line wrapping in debug console."

This reverts commit 179d108071d6607bb15c2b23501a9a9c9c624c4e.
Handle empty lines correctly in debug console. Fixes #157.
Scroll debug console to bottom on output. Closes #158.