• 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: Jim Ingham <email@hidden>
  • Date: Mon, 10 Sep 2007 16:49:34 -0700

No, DebugStr isn't treated at all specially by the debugger. Its strings just go out whatever stdout is hooked up to.

It would be good to have a system-provided stack crawl facility, though. Lots of folks have hacked up their own, but it's a little tricky. Not yet, though.

Jim

On Sep 10, 2007, at 4:04 PM, Mark Thomas wrote:

Hi All,
Back in Classic day's it was possible to embedded MacBugs commands within
a DebugStr() e.g.


DebugStr("\p statement ;sc ");
DebugStr("\p statement ;g ");

 Was this capability brought over to gdb & DebugStr, as doing e.g.

DebugStr("\p statement ;cont ");

This doesn't seem to work when I try as this was quite useful for
generating some automatic debug output, when tracing through the code, in a
debug programmatic way. I understand that the debugger GUI I could do this
but this is useful when embedded in the code and can be used on any system
when launching the app with gdb to debug :-).


(It was also a great way of getting stackcrawls when tracing, which is
hard to do when using printf instead of DebugStr )


Thanks
Mark.

_______________________________________________
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
  • Follow-Ups:
    • Re: Embedding debugger commands within DebugStr ?
      • From: "Sean McBride" <email@hidden>
References: 
 >Embedding debugger commands within DebugStr ? (From: Mark Thomas <email@hidden>)

  • Prev by Date: Embedding debugger commands within DebugStr ?
  • Next by Date: RE: Embedding debugger commands within DebugStr ?
  • Previous by thread: Embedding debugger commands within DebugStr ?
  • Next by thread: Re: Embedding debugger commands within DebugStr ?
  • Index(es):
    • Date
    • Thread