r/KotlinAndroid • • Feb 07 '19

How would you debug constructor of a data class

How would I put a break point in the constructor of a data class declared as follows:

data class Person(val name: String, val lastname: String)

This would be inside android Studio.

Thanks.

0 Upvotes

5 comments sorted by

4

u/arpytothdev Feb 07 '19

Why would you want to do that?

2

u/nl_expat Feb 09 '19

So i can intercept and see the timing of the class instantiation while reading the results of a web service call.

4

u/aminsadeghipour Feb 07 '19

What exactly do you want to check?

3

u/[deleted] Feb 09 '19

[removed] — view removed comment

1

u/nl_expat Feb 20 '19

thanks much, makes sense