• 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: Embedding debugger commands within DebugStr ?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

RE: Embedding debugger commands within DebugStr ?


  • Subject: RE: Embedding debugger commands within DebugStr ?
  • From: Steven Splinter <email@hidden>
  • Date: Mon, 10 Sep 2007 17:10:08 -0700
  • Acceptlanguage: en-US
  • Thread-topic: Embedding debugger commands within DebugStr ?

You can't do that with DebugStr, but you can issue gdb commands on a breakpoint which then continues without actually switching into the debugger.

The checkbox column on the far right of the xcode breakpoints list causes a breakpoint to auto-run after it's hit. Normally, that's not very useful, but...

If you open the triangle on the far left side of the breakpoints list, you can enter gdb commands to be run when the breakpoint is hit.  Entering "backtrace" for example, will dump a stack crawl when the breakpoint is hit.

In combination, I think this does what you wanted, and you don't even have to recompile to make changes to it, or add a command elsewhere.

Hope that helps.
-Steve

 _______________________________________________
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: 
 >Embedding debugger commands within DebugStr ? (From: Mark Thomas <email@hidden>)

  • Prev by Date: Re: Embedding debugger commands within DebugStr ?
  • Next by Date: How to add folder to "Copy Bundle Resources"
  • Previous by thread: Re: Embedding debugger commands within DebugStr ?
  • Next by thread: How to add folder to "Copy Bundle Resources"
  • Index(es):
    • Date
    • Thread