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

Tagged with: , , , , , , , , ,
Posted in Tools

Leave a Reply