A method and system of debugging of software where debug statements are condensed during program execution and later expanded into a user-friendly format. A method in accordance with the present disclosure logs debug information and identifiers associated with debugging statements within a program that are configured to output a formatted log used for debugging the program. The identifiers indicate locations of the debugging statements within the program. Formatting information associated with the debugging statements is compiled and stored in a database. Once the programmer wishes to debug the program, during post-processing, the formatting information associated with the identifiers is extracted from the database. The debug information is then rendered using the extracted formatting information such that the rendered debug information depicts the formatted log that the debugging statements are configured to output. The rendered debug information is displayed as the formatted log used for debugging the program.