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

Related posts:

  1. Using Git with Xcode, Part I
  2. A List of Coding Standard Websites
  3. Using Subversion with Xcode, Part III
  4. Using Subversion with Xcode, Part II
  5. Using Subversion with Xcode, Part I

Tags: , , , , , , , , ,

Leave a Reply