Convert debug info to string