• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag
 

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: Debugging question
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Debugging question


  • Subject: Re: Debugging question
  • From: Sean Murphy <email@hidden>
  • Date: Sat, 1 Apr 2006 12:23:37 -0500

On Apr 1, 2006, at 9:36 AM, Michael wrote:

Code includes this statement:

"while ( (chr = getchar()) != EOF)"


I would like to have it run and be able to input some data from the Std input and watch what happens.


Sorry Michael, I forgot to mention that you can't input anything via stdinput through the debugger console. You must open up the "Standard I/O Log" which is found under the "Debug" menu.

Now, if you place a breakpoint inside your while loop you can step into the code like you wanted. The only problem now is that calls to getchar() and printf() don't seem to show output in the I/O Log while the program is paused. You can still input your character there, however, and monitor variables in the debugger, only thing is their output will not be displayed in the log. There is probably a better way, so maybe someone else can help us with that..

Hope this gets you on the right track..
-Sean
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Xcode-users mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden


  • Follow-Ups:
    • Re: Debugging question
      • From: Michael <email@hidden>
References: 
 >Re: Debugging question (From: Michael <email@hidden>)
 >Re: Debugging question (From: Michael <email@hidden>)

  • Prev by Date: Remote Compilation/Debugging Problems.
  • Next by Date: Re: Debugging question
  • Previous by thread: Re: Debugging question
  • Next by thread: Re: Debugging question
  • Index(es):
    • Date
    • Thread