Here is the problem. When I am using the debugging (GCC) in Xcode 4. It seems I can't input a number in debugging console if I use "scanf" in my program. I have to add a "/" after the number then it can act as usual. Just like the solution provided in How to Enter Standard Input in Xcode Debugger Console. Appending a slash after a desired input number does not make sense.
For example: If the program is something similar:
...
int num;
scanf("%d", &num);
...
Then when it ran to the line, I have to type "123/", or it won't give me any response.
Does anyone meet the same problem? Is there any solution to solve the problem and make it just like running in standard console environment.
You have to press shift + enter for it to work.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With