use readline instead of STDIN for debug
repeat debug input until valid command is entered
trap ctrl-c in debugger and exit gracefully.

Same behavior as q
Add readline support to the debugger.

Now it supports history and command editing. Both of which are fantastic for user interaction.