• 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: Opposite of "step out"
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


  • Follow-Ups:
    • Re: Opposite of "step out"
      • From: "Hamish Allan" <email@hidden>
References: 
 >Opposite of "step out" (From: "Hamish Allan" <email@hidden>)

  • Prev by Date: Opposite of "step out"
  • Next by Date: Re: Opposite of "step out"
  • Previous by thread: Opposite of "step out"
  • Next by thread: Re: Opposite of "step out"
  • Index(es):
    • Date
    • Thread