Debugger using lower level threading facilities.
Fixed NPE.