• 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: Get the name of the method that called a method
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Get the name of the method that called a method


  • Subject: Re: Get the name of the method that called a method
  • From: Alex Kac <email@hidden>
  • Date: Tue, 21 Apr 2009 11:44:51 -0500

WEll that's during debugging. I'm trying to log it during a beta tester run. I don't want it to crash, but just during some debugging with these testers I want to see what methods call it when in relation to other things happening. In our tests it should only happen in specific situations, but we're finding some weird issues that seem to point to that spot. Since we can't reproduce, we're hoping to log it from the user. Since its an iPhone that makes it a tiny bit more difficult (i.e. I can't get their console logs or stuff like that).

Its obviously not for production - just a day or two of testing.

On Apr 21, 2009, at 9:59 AM, Michael Ash wrote:

On Tue, Apr 21, 2009 at 2:09 AM, Alex Kac <email@hidden> wrote:
I am trying to log some specific error conditions in a fairly dynamic
environment (of course Obj-C's forté), and would like to log some sort of
backtrace of method calls that reached a specific method.


What is the best way to get that info? This is using Objective-C 2.0 on the
iPhone.

Type man backtrace for a handy function for this. I'm not sure if it's available on the iPhone, but I would expect so, and it's worth a shot.

Mike
_______________________________________________

Cocoa-dev mailing list (email@hidden)

Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com

Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden

Alex Kac - President and Founder Web Information Solutions, Inc.

"In the Country of the Blind, the one-eyed man is king."
--Desiderius Erasmus





_______________________________________________

Cocoa-dev mailing list (email@hidden)

Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com

Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden


References: 
 >Get the name of the method that called a method (From: Alex Kac <email@hidden>)
 >Re: Get the name of the method that called a method (From: Michael Ash <email@hidden>)

  • Prev by Date: Re: Get the name of the method that called a method
  • Next by Date: how to get the save File path from NSPrintpanel
  • Previous by thread: Re: Get the name of the method that called a method
  • Next by thread: Re: Get the name of the method that called a method
  • Index(es):
    • Date
    • Thread