Re: Symbolic breakpoints or category?

2016-12-20 Thread Steve Mills
On Dec 20, 2016, at 15:32:18, Alex Zavatone wrote: > > po NSStringFromSelector(action) > expr (void)NSLog(@"%@", NSStringFromSelector(action)) Does action have a parameter (such as "(id)sender")? If so, then the name is "action:", not "action". -- Steve Mills Drummer, Mac geek __

Symbolic breakpoints or category?

2016-12-20 Thread Alex Zavatone
ess fun than it should be. I am considering using symbolic breakpoints to trap UIControl sendAction: to: forEvent: or writing a category on UIControl but the way this code is, it's not that easy. What I'd like to do is to get the string value of the name of the selector action bein

Re: Symbolic Breakpoints

2011-09-21 Thread Quincey Morris
On Sep 21, 2011, at 13:25 , Richard Somers wrote: > Results of Xcode 4.1 symbolic breakpoint testing. > > lldb will not break on any Apple supplied library symbols. > > gdb will break on some Apple supplied library symbols but not all. > > [NSObject alloc]Yes > > [NSUndoManager all

Re: Symbolic Breakpoints

2011-09-21 Thread Richard Somers
On Sep 21, 2011, at 1:49 PM, Quincey Morris wrote: >> I made a brand new project in Xcode 4.1 and got the same results as before. >> gdb crashes when just using a method name like 'keyDown:' for the symbolic >> breakpoint. It would appear that this has been fixed in Xcode 4.2. Also you >> have

Re: Symbolic Breakpoints

2011-09-21 Thread Quincey Morris
On Sep 21, 2011, at 12:40 , Richard Somers wrote: > I made a brand new project in Xcode 4.1 and got the same results as before. > gdb crashes when just using a method name like 'keyDown:' for the symbolic > breakpoint. It would appear that this has been fixed in Xcode 4.2. Also you > have accur

Re: Symbolic Breakpoints

2011-09-21 Thread Richard Somers
On Sep 21, 2011, at 12:10 PM, Quincey Morris wrote: > I'm not seeing this behavior in gdb (with Xcode 4.2). > > In Xcode 3, if you tried to set a breakpoint on (say) 'keyDown:', Xcode would > pop up a sheet listing all the different matching symbols (all the methods in > the various classes whe

Re: Symbolic Breakpoints

2011-09-21 Thread Quincey Morris
On Sep 21, 2011, at 09:29 , Richard Somers wrote: > That works! So apparently the entire symbol including square brackets and the > initial plus or minus indicating instance method versus class method is > required for an Objective-C symbolic breakpoint. > > The Xcode 4 User Guide explicitly st

Re: Symbolic Breakpoints

2011-09-21 Thread Richard Somers
On Sep 21, 2011, at 9:43 AM, Jens Alfke wrote: >> Is there a secret to getting symbolic breakpoints to work? >> Set symbolic breakpoint 'keyDown:' (without the quotes) and nothing happens. > > The name has to be like “-[MyView keyDown:]”, otherwise it’s ambiguous w

Re: Symbolic Breakpoints

2011-09-21 Thread Jens Alfke
On Sep 21, 2011, at 8:01 AM, Richard Somers wrote: > Is there a secret to getting symbolic breakpoints to work? > Set symbolic breakpoint 'keyDown:' (without the quotes) and nothing happens. The name has to be like “-[MyView keyDown:]”, otherwise it’s ambiguous which -keyDown:

Symbolic Breakpoints

2011-09-21 Thread Richard Somers
Is there a secret to getting symbolic breakpoints to work? Set symbolic breakpoint 'keyDown:' (without the quotes) and nothing happens. Set a breakpoint in the gutter and it works fine. I am using Xcode 4.1 with the LLDB debugger. When I try to switch to the GDB debugger Xcode cr