add debug() to BasePlugin
add the "debug stack" to the output of a task error
Thus users can see their debugs directly from the interface