Rewrite the debugger to resolve numerous known issues and instabilities mostly due to the threading code.