https://kotlinlang.org logo
Title
d

Daniel Tam

06/13/2018, 11:01 AM
is there a good way of debugging coroutines? I know that that's quite a general question but is there some way that I can view the memory/variables of every method that is currently suspended if I set a breakpoint somewhere? I can run everything on a single threaded context if that makes anything easier
s

spand

06/13/2018, 11:17 AM
If you run it on a
TestCoroutineContext
then I think some of them are in the
queue
property. Not sure if it is all of them
d

Daniel Tam

06/13/2018, 12:25 PM
hmm that's not quite what I meant but I'll keep that in mind nonetheless!