Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8615693
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 12, 20262026-06-12T05:26:32+00:00 2026-06-12T05:26:32+00:00

My Xcode (version 4.5) shows me only the first number (or character) when I

  • 0

My Xcode (version 4.5) shows me only the first number (or character) when I type in debug area – like this:


2012-09-26 02:45:31.560 nn[731:303] Which numbers do you want to calculate Great Common Divisor? 

 1st=

4

2012-09-26 02:45:36.777 nn[731:303] 2nd=

6

2012-09-26 02:45:39.633 nn[731:303] your number is 45 and 66, and gcd is 3

What is wrong with it?

Though program works fine, and I can see my number when I once change output options(All Output, Target Output).

Here is the code.


#import <Foundation/Foundation.h>

int main (int argc, char *argv[]){
@autoreleasepool{
    int n1, n2;
    int numerator, denominator, remainder, gcd;
    numerator = 0;
    denominator = 0;
    remainder = 0;
    gcd = 0;

    NSLog(@"Which numbers do you want to calculate Great Common Divisor? \n 1st=");
    scanf("%i", &n1);
    NSLog(@"2nd=");
    scanf("%i", &n2);

    numerator = n1;
    denominator = n2;

    while (numerator % denominator != 0){
        remainder = numerator % denominator;
        numerator = denominator;
        denominator = remainder;
    }

    gcd = denominator;
    NSLog(@"your number is %i and %i, and gcd is %i", n1, n2, gcd);
}
return 0;
}

Note: This problem occured suddenly (I used to be able to see what I typed in). I checked out all my macs, and all xcodes work like this. They all show me only the first digit of number (or character).

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-12T05:26:34+00:00Added an answer on June 12, 2026 at 5:26 am

    Cool, you have without any doubt discovered a bug of the new Xcode debug window. The code is fine and if you run the compiled program in a standard console, it works as expected .

    You should report the bug into the Apple Bug Reporter site, if you wan’t do it i will do…

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I recently upgraded to the latest version of XCode, but apps made with this
Like most, I recently downloaded the latest version of XCode (4.3.1). I've noticed that
Right now, Xcode 4's version editor shows my local changes on the left and
I'm using version control Versions SVN for Mac. After updating, Xcode begun to show
I updated my xcode version to 4.2 and about to make a universal application
I have Xcode version 4.2 with OS X 10.7.2, and I was trying to
For the old version xcode/ios, I used: appDelegate =(AppDelegate *)[[UIApplication sharedApplication] delegate]; to access
I am using an older version of Xcode - 3.1.3. and want to install
I just upgrade to Xcode 4.3.1 For the old version of Xcode, it is
I recently updated to the new version of XCode and the session start code

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.