D
D
Dimas1232019-03-21 12:08:07
Android
Dimas123, 2019-03-21 12:08:07

Is there an analogue of var_damp on kotlin for android?

Making my first steps in android studio with kotlin.
I am calculating something or, for example, parsing the url and I want to see what the function returns now or what is now in this variable. In php, I could just write var_dump($var)in js, it was also easy to organize it with output to the console or browser.
And how to quickly see what is there now in any variable or array in android studio with kotlin?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
G
GavriKos, 2019-03-21
@Dimas123

The simplest thing is to set a breakpoint and look in the debugger.
If you want directly in the log - https://stackoverflow.com/questions/38525403/kotli...

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question