Guard some Debug output so that it only appears when applicable ('Item::name' is only available when CANVAS_DEBUG is defined)