I have a segmentation fault and my program crashes.
I still want to be able to see the print I did right before the crash.
I tried debugging it and went over the “cout” line and still I can’t see the output during or after the crash.
Basically I have a vector iterator and would like to see its contents but it’s really hard using the debugger. If you have a solution for this one it will be better than the solving the output case..
Thanks 🙂
Use
cerrinstead ofcoutbecausecoutbuffers its output.cerris slower in most situations, but always use it for debug prints.More information