• 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: custom visualization in gdb...
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: custom visualization in gdb...


  • Subject: Re: custom visualization in gdb...
  • From: Mark Bessey <email@hidden>
  • Date: Thu, 18 Aug 2005 16:00:10 -0700

Ray,

You have a few options, depending on what your needs are. Xcode doesn't support the kind of "render this in a custom view" interface that Visual Studio has, but there are several things you can use within GDB and Xcode to display your data structure more meaningfully.

In order of increasing difficulty & sophistication:

Option 1: Use a custom data formatter string, as described in the "Viewing Variables Using Custom Data Formatters" chapter of the Debugging section of the Xcode User Guide.

Option 2: Write a function to dump your data structure in a readable text format. You can then call this function from the Debugger Console in Xcode, or from your custom data formatter from option 1.

Option 3: Write functionality into your application to open a window and display the structure. You can call this function from the GDB console, though you'll need to make sure the application properly flushes the drawing, etc.

-Mark

On Aug 17, 2005, at 7:03 PM, Ray Fix wrote:

I have a complicated C/C++ structure that I would like to view from the debugger in a custom way. Open a whole other window and render it basically. I have no idea if Xcode / GDB can be extended this way.
_______________________________________________
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: 
 >custom visualization in gdb... (From: Ray Fix <email@hidden>)

  • Prev by Date: Re: strange link error: ld: Undefined symbols: _sprintf$LDBLStub
  • Next by Date: warning prebinding disabled because dependent library /usr/lib/libobjc.A.dylib
  • Previous by thread: Re: custom visualization in gdb...
  • Next by thread: Re: Xcode-users Digest, Vol 2, Issue 436
  • Index(es):
    • Date
    • Thread