debugger groundwork, added debugging api, break instruction & debug thread func version