In other programming languages like PHP or Perl, it is easy to dump everything that is contained in a variable. Like in PHP using var_dump() or print_r() functions and Perl has the Data::Dumper CPAN class, etc.
So, I want something like that in Objective-C, in few cases it would be very convenient to able to dump everything like that, instead of using gdb to inspect each variable.
Tarun Kumar
29-Sep-2015I will use to debug NSArray contents using the code:
The code above enumerate all objects in the NSArray arrObj, so we can iterate through and also can print every object.
I hope this code will be helpful for you.