/ Published in: Objective C

Ever needed to see more context surrounding your NSLog statement to help you debug in the console?
Expand |
Embed | Plain Text
Copy this code and paste it in your HTML
#define DetailedLog(str, args...) NSLog\ (@"\n-------------\nBetter Log\n%s:%d\n%@\n[%s]\n\n[%@]\n-------------\n",\ // this function was improved to work in functions as well as methods: #define DetailedLog(str, args...)\ NSLog(@"\n-------------\nBetter Log\n%s:%d\n%s\n\n[%@]\n-------------\n",\
URL: http://www.degutis.org/dev/2009/04/14/detailedlog/
Comments
