Re: Embedding debugger commands within DebugStr ?
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