Added a (very unfinished) basic debug state.