You could do a print(TO_DIAG,...) - that should work also in training mode.