Discussion in 'Mac Programming' started by farmerdoug, Dec 5, 2012.

  1. farmerdoug macrumors 6502a

    Sep 16, 2008
    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?
  2. RiskyMr macrumors newbie

    Apr 8, 2009
    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.
  3. spyguy10709 macrumors 6502a


    Apr 5, 2010
    One Infinite Loop, Cupertino CA
    What IDE do you use? If this is in XCode I have no idea - but if you're using DashCode, check the parameters in the project menu.
  4. farmerdoug thread starter macrumors 6502a

    Sep 16, 2008

Share This Page