Is there an object dumper method available?



Does Kotlin provides any object dumper utility that prints the content and/or its type information for debug/utility purpose? Something like Groovy’s Object.dump() functionality would be very useful.



Unfortunately, there is no such utility. If you have data class, it will have automatically generated toString() function containing all its properties. For other classes, you can use toString(), as well (if it has non-trivial implementation).