Problem: I want to log the information that the debugger seems to be able to obtain, specifically the caller function's URL and line number.
I'm able to use
arguments.callee.caller.name to get the function names, but this doesn't work for anonymous functions which is where I think my actual problem lies. The callee function is called from a more than a couple of dozen places in the application and the problem seems to occur only when running the app on the device, so the only way to pin down the problem is to log the call stack upto one level up.
Titanium SDK: 3.1.1GA
Target Platform: iOS 6.0