Add debug output to trace conversion to SCRAM