Re: Discovering where a method was called from within the method
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