Debug Hangs on first program


#1

I followed the instructions in the book exactly to make my program. I typed in the code, and made no mistakes, but when I select Run (the play button) the program runs, and doesn’t stop running. Even if I stop it manually, the debug log never has any info in it. I’m using XCode 4.3.2 on OS X 10.7.4

If I execute the program from Terminal, it runs properly, displays the printf data, and exits.

Here is a video of what is happening: youtu.be/vV8O1hoz7WA

Edit: I found the issue. Apparently the loopback for localhost was missing in my /etc/hosts file. That fixed it.


#2

“I found the issue. Apparently the loopback for localhost was missing in my /etc/hosts file. That fixed it.” How did you fix that?


#3

I basically did this superuser.com/questions/382744/h … -permanent


#4

Thanks for your super fast reply. Mine is already set up that way…


#5

It would be weird for it to be setup any different. I wonder why mine was missing entries. Is your XCode working?