How to Enter Standard Input in Xcode Debugger Console

How to Enter Standard Input in Xcode Debugger Console

I was having an issue when I ran a program in Xcode Debugger Console that utilized scanf() the program would just hang.

The program would work correctly when run directly from the Terminal.

The only solutions that I could find online were to install a previous version of Xcode.

Solution

When entering standard input, you need to terminate your string with the forward slash ‘/’.

Example:

Enter an integer:

4556/ <—- This is what you input

Sum of 4556 = 21

Like this post? Feel free to share or bookmark it.


Bookmark the permalink. Post a comment or leave a trackback: Trackback URL.

Post a Comment

Your email is never published nor shared. Required fields are marked *

*
*

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>

Subscribe to RepeatGeek

Subscribe via RSS

Enter your email address: