• 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: How do you debug a C++ Standard Tool Application?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: How do you debug a C++ Standard Tool Application?


  • Subject: Re: How do you debug a C++ Standard Tool Application?
  • From: Laurence Flath <email@hidden>
  • Date: Wed, 22 Sep 2004 09:30:38 -0700

This topic has been covered before on other lists, but...

Unfortunately the Standard I/O window in Xcode is a 'pseudoterminal'. For instance, you cannot use ncurses-type operations and have it behave the same as from within an actual shell (if I'm wrong here, I'd love to hear it).

I've learned to live with the extra carriage returns and funky fscanf/getch behavior when running/debugging from within Xcode. I won't pretend to understand how complicated it is to make it work like you were in Terminal, but it certainly could be improved. As always though, I find it hard to overly criticize a free toolset...

Laurence


Laurence Flath, Ph.D. Lawrence Livermore National Laboratory P.O. Box 808, L-183 Livermore, CA 94551

Phone: 925-424-6424
Fax:   925-422-2499
email: email@hidden


On Sep 21, 2004, at 8:09 PM, Wade Tregaskis wrote:

Debugging works fine, as long as you don't need stdin. Obviously, program stdin conflicts with GDB's commands.

Are you sure? GDB does have a lot of bugs regarding stdin/stdout (particularly with multi-threaded programs, I've noticed, but then it's terribly buggy with such apps anyway), but it does work in some (arguably most) cases... if you mean you can't control gdb and the program at once, then yes, but you can always control-C to get to gdb's prompt from your program, and then "c" (continue) to resume your program. Assuming your input isn't time sensitive, and you don't block the relevant signal for ctrl-C, etc.


Wade Tregaskis (aim & yahoo: wadetregaskis, icq: 40056898, msn & email: email@hidden, jabber: email@hidden)
-- Sed quis custodiet ipsos custodes?


_______________________________________________
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



_______________________________________________ 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
References: 
 >XCode 1.5: Can't debug after performing Deployment build (From: Robert Cerny <email@hidden>)
 >Re: XCode 1.5: Can't debug after performing Deployment build (From: Robert Cerny <email@hidden>)
 >How do you debug a C++ Standard Tool Application? (From: Richard Dunlap <email@hidden>)
 >Re: How do you debug a C++ Standard Tool Application? (From: Wade Tregaskis <email@hidden>)

  • Prev by Date: Re: How do you debug a C++ Standard Tool Application?
  • Next by Date: Re: Debugger (#2)
  • Previous by thread: Re: How do you debug a C++ Standard Tool Application?
  • Next by thread: Re: How do you debug a C++ Standard Tool Application?
  • Index(es):
    • Date
    • Thread