Re: Opposite of "step out"
Re: Opposite of "step out"
- Subject: Re: Opposite of "step out"
- From: Ken Thomases <email@hidden>
- Date: Thu, 9 Oct 2008 17:13:28 -0500
On Oct 9, 2008, at 4:56 PM, Hamish Allan wrote:
I want to be able to do this the other way round. So if I set a
symbolic breakpoint on -[NSValueBinder showValue:inObject:], I want a
button that I can press which will take me to -[NSImageView
setObjectValue:]. ("Step into", of course, only takes me to the next
asm instruction.)
Okay, so that method call might not be the first call from
-[NSValueBinder showValue:inObject:]. In an ideal world, I'd have a
way of stepping until the first call, and also a way of stepping to a
particular named call.
Is this possible?
There is no built-in command to run until the next call instruction.
Obviously, if you know what method is going to be called, you can put
a breakpoint there. There's even such a thing as a temporary
breakpoint that removes itself after firing.
To break on any method invocation, you would put a breakpoint on
objc_msgSend and its variants.
Depending on what you're trying to accomplish, just for completeness'
sake, you might want to look into DTrace and the objc provider. Using
that, you can trace all method calls matching certain patterns.
Cheers,
Ken
_______________________________________________
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