• 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: How to see the arguments of methods from the stack trace during debugging
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: How to see the arguments of methods from the stack trace during debugging


  • Subject: Re: How to see the arguments of methods from the stack trace during debugging
  • From: Kaspar Fischer <email@hidden>
  • Date: Sat, 12 Nov 2005 17:30:50 +0100

On 11.11.2005, at 19:18, Miguel Sanchez wrote:
Xcode's debug window shows you the arguments under the >Arguments disclosure triangle in the variables area, you just need to click on the stack frame you want to inspect.
If want to do t his from the command line, then it's


(gdb) frame 14
(gdb) info args

- Miguel

On Nov 11, 2005, at 12:42 AM, Kaspar Fischer wrote:
Is there a way to see for a method in the stack-trace of
Xcode's debug window what arguments it was passed?

For instance, I break on an exception raise and see a
stack-trace like this:

#0 0x928f6508 in -[NSException raise]
#1 0x929a78e8 in -[NSAssertionHandler handleFailureInMethod:object:file:lineNumber:description:]
...
#14 0x938d991c in -[NSController observeValueForKeyPath:ofObject:change:context:]
...

Sorry, my question was not really clear. For routines I have written myself (meaning, source code is available), there is indeed an Arguments disclosure triangle in the variables area, as you say. But for the frame #14 in the above example, there is no such triangle.

O.k., I understand that I do not have the source code for
NSController, but nonetheless I would like to see the
arguments passed to it. -- And this should be possible
because the compiler and the debugger now the signature
of this method!

So is there a way to see arguments of methods with known
signature (but possibly unknown source code)?

Thanks,
Kaspar
_______________________________________________
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


  • Follow-Ups:
    • Re: How to see the arguments of methods from the stack trace during debugging
      • From: Rob Mayoff <email@hidden>
References: 
 >How to see the arguments of methods from the stack trace during debugging (From: Kaspar Fischer <email@hidden>)
 >Re: How to see the arguments of methods from the stack trace during debugging (From: Miguel Sanchez <email@hidden>)

  • Prev by Date: Re: Problem with dataWithPDFInsideRect
  • Next by Date: Re: Linking error with C++ framework and GCC 4.0.1
  • Previous by thread: Re: How to see the arguments of methods from the stack trace during debugging
  • Next by thread: Re: How to see the arguments of methods from the stack trace during debugging
  • Index(es):
    • Date
    • Thread