Possible Duplicate:
How to print out the method name and line number and conditionally disable NSLog?
Using macro in Objective-C to log function name and line number
Question
What preprocessor directive or function call will help me identify what method is currently being called, or what line number is being executed in a file?
Background
I'm trying to write a quick macro to hunt down infinite loops, I want something that can be copy-pasted without modification, and will NSLog the current filename and line number, or current class and method name - really anything that will allow me to identify what loop is infinite.