2 ms·
A third alternative is to use a better debugger. I recommend Pernosco (https://pernos.co/ https://pernos.co/). Pernsoco lets you record your program once, and t
by db48x 6y ago
A third alternative is to use a better debugger. I recommend Pernosco (https://pernos.co/ https://pernos.co/). Pernsoco lets you record your program once, and then builds a database out of the recording. You can quickly get a list of all the times your program hit a certain line, and you can then print local variables from each of those execution points. To make this more concrete, you can click on line number 442 to see a list of all the times your program was at line number 442. If you then type the expression "foo" into the query window, the list will update to show the value of the variable foo at every one of those occurrences. There's no need to edit the printfs, recompile, and rerun the program.