So in my IOS hacking adventures and attempts to get better log information for apps running in production, I looked into the bowels of the source code of Appcelerator Titanium. I was looking for a way to make my logging the eyes and ears of the app once it is in the wild so we can better support our applications and see what is going on when the app is not running in the IOS Simulator or in the debugger.
This approach is not complete or thoroughly tested, but I am able to get my module’s methods called when script errors occur in the application and when exception are thrown in the application. I wanted to put this out there to see if anyone else has gone down this path or could provide another set of eyes to validate the overall approach.
This is a few hours of hacking nothing perfect, but take a look and share your thoughts