Store debug info in a variable instead of displaying it