I get a segmentation error so to debug it, I put in a print statements to help me debug. However, I didn't get any output but I did find the error. It was after the print statement. How does that happen?
It's likely that the output was buffered and didn't get printed before the error happened. If you do a flush after the print statement then you should see the output before the error.
I get a segmentation error so to debug it, I put in a print statements to help me debug. However, I didn't get any output but I did find the error. It was after the print statement. How does that happen?