Surgery on debug function core, phase 1