support debugger command for xtemplate. Fixes #578