debug the new "When" (when this, do that) command