I'm in the middle of lovely iOS non ARC code of a few (6) projects which are occasionally optimized out of the debugger's JIT.
Additionally, every screen is built from XML files so, it's a little hard to trace which button causes which action to go where. This makes life less 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 being passed so that I can at least find out what method is being called. Within symbolic breakpoints, I'm able to issue a bt to look at the backtrace, but that's a little ugly and clutters up the output. I trled following the the instructions from the WWDC 2012 - Debugging in Xcode video by Ken Orr and right around the 14 minute mark he mentions the format that's needed to output the operation. When I try to do anything with the action, I'm seeing an error. Do I have to refer to the parameters in the $argN format? po NSStringFromSelector(action) expr (void)NSLog(@"%@", NSStringFromSelector(action)) error: use of undeclared identifier 'selector' error: 1 errors parsing expression error: use of undeclared identifier 'action' Thanks in advance, Alex Zavatone _______________________________________________ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) 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: https://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com This email sent to arch...@mail-archive.com