• 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: Discovering where a method was called from within the method
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Discovering where a method was called from within the method


  • Subject: Re: Discovering where a method was called from within the method
  • From: William Bumgarner <email@hidden>
  • Date: Thu, 20 Apr 2006 08:20:13 -0700

On Apr 20, 2006, at 5:41 AM, I. Savant wrote:
If it's your own code, how about setting a breakpoint on the targeted method and running it in the debugger? Every time it's called, you'll see the stack trace for it and can click it to go directly to the point in code that called it.

You can automate this, too.

- set a breakpoint in the method you want logged (click in the gutter to the left)

- right-click (control-click for the one button impaired) on the breakpoint and select "edit breakpoint"

- spin down the disclosure triangle and click the "+" button to add an action

- select "debugger command"

- enter "bt" into the field

- Click the "continue" checkbox at the far right of the breakpoint (above the action field)

- run the program under the debugger

Every time the breakpoint is hit, the stack will be spewed into the debugger's console.

b.bum

_______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden


References: 
 >Discovering where a method was called from within the method (From: Philip Dow <email@hidden>)
 >Re: Discovering where a method was called from within the method (From: "I. Savant" <email@hidden>)

  • Prev by Date: Re: Localization
  • Next by Date: NSImage and Photoshop layers
  • Previous by thread: Re: Discovering where a method was called from within the method
  • Next by thread: Re: Discovering where a method was called from within the method
  • Index(es):
    • Date
    • Thread