• 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 dreams?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Debugging dreams?


  • Subject: Re: Debugging dreams?
  • From: Chris Espinosa <email@hidden>
  • Date: Wed, 7 Jun 2006 08:53:22 -0700


On Jun 7, 2006, at 8:35 AM, Cem Karan wrote:

Don't forget that you may run (with the gdb prompt of Xcode's debugger) any function you want, like the classical "print-object my_objc_var" or "p (void)CFSHow(my_corefoundation_var)". Here, this will be a :

p (void)DumpMyGraph("/tmp/dump.dot", my_graph_root)


You just need to write the function DumpMyGraph, and check that it is not optimized away.


I hadn't thought about that!  I'll have to spend some time playing with it... Thank you!


You can even do this in a Debugger Action in the IDE without going to the gdb command line.  In fact, you can run a gdb script, a shell script, or an AppleScript, with various substitutions available at each breakpoint.

http://developer.apple.com/documentation/DeveloperTools/Conceptual/XcodeUserGuide/Contents/Resources/en.lproj/06_03_db_controlling_execution/chapter_41_section_2.html

Chris
 _______________________________________________
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 dreams?
      • From: Damien Bobillot <email@hidden>
References: 
 >Debugging dreams? (From: Cem Karan <email@hidden>)
 >Re: Debugging dreams? (From: Damien Bobillot <email@hidden>)
 >Re: Debugging dreams? (From: Cem Karan <email@hidden>)

  • Prev by Date: Re: Debugging dreams?
  • Next by Date: Re: Debugging dreams?
  • Previous by thread: Re: Debugging dreams?
  • Next by thread: Re: Debugging dreams?
  • Index(es):
    • Date
    • Thread