• 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: Looking for info on data manipulation on files
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Looking for info on data manipulation on files


  • Subject: Re: Looking for info on data manipulation on files
  • From: Jerry <email@hidden>
  • Date: Thu, 8 Mar 2007 09:03:50 +0000


On 8 Mar 2007, at 08:38, David A. Lyons wrote:

I just tried with Xcode 2.4, and while debugging a program that reads from standard input using fgets(), I'm able to supply input by uisng the Debug > Standard I/O Log window.

...if I could convert one string type to another maybe I could see stdlib string!

From the debugger console window you can use GDB commands, including calling functions in your code, and functions in libraries your code links against. So, one way to view a std::string would be to use the c_str() member function:


	x/s myString.c_str()

There may be a way to get Xcode's debugger display to do that for you automatically -- I haven't tried.

Certainly: you can type something like:

size={(int)$VAR.size()} "{(char *)$VAR.c_str()}:s"

into the summary column of a std::string row in the debugger window and from then on, some of your std::strings will display their value. Of course, some won't for no apparent reason, and references to strings won't display, but it's slightly better than nothing.

Jerry

_______________________________________________
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


  • Prev by Date: Re: The date at compile time?
  • Next by Date: Displaying image in applet
  • Previous by thread: Re: The date at compile time?
  • Next by thread: Displaying image in applet
  • Index(es):
    • Date
    • Thread