Register FAQ / Rules Forum Spy Search Today's Posts Mark Forums Read
Go Back   MacRumors Forums > Apple Systems and Services > Programming > Mac Programming

Reply
 
Thread Tools Search this Thread Display Modes
Old Dec 5, 2012, 09:46 AM   #1
farmerdoug
macrumors 6502a
 
Join Date: Sep 2008
Speed

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?
farmerdoug is offline   0 Reply With Quote
Old Dec 5, 2012, 10:05 AM   #2
RiskyMr
macrumors newbie
 
Join Date: Apr 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.
RiskyMr is offline   0 Reply With Quote
Old Dec 5, 2012, 10:06 AM   #3
spyguy10709
macrumors 6502a
 
Join Date: Apr 2010
Location: One Infinite Loop, Cupertino CA
Quote:
Originally Posted by farmerdoug View Post
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?
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.
spyguy10709 is offline   0 Reply With Quote
Old Dec 5, 2012, 10:34 AM   #4
farmerdoug
Thread Starter
macrumors 6502a
 
Join Date: Sep 2008
Thanks
farmerdoug is offline   0 Reply With Quote

Reply
MacRumors Forums > Apple Systems and Services > Programming > Mac Programming

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -5. The time now is 05:33 AM.

Mac Rumors | Mac | iPhone | iPhone Game Reviews | iPhone Apps

Mobile Version | Fixed | Fluid | Fluid HD
Copyright 2002-2013, MacRumors.com, LLC