painless: add debugging tool to tests