Also, is there a debug tool that would let you tel...
# kotlin-native
b
Also, is there a debug tool that would let you tell what things you might accidentally be freezing, in a more complex project?
r
Not quite a debugging tool but you can call
ensureNeverFrozen()
on an object to cause it to throw when something tries to freeze it, which will allow you to see whst’s causing it to freeze. https://kotlinlang.org/api/latest/jvm/stdlib/kotlin.native.concurrent/ensure-never-frozen.html
b
Ah that’s a good tip thanks!
o
indeed Russell is correct, it is meant to be used for debugging such a complex cases
🙌 1