move trigger callback out of debugger only code.