Implemented basic debug support.