Any tipcs for debugging coroutines? I have a bug i...
# coroutines
c
Any tipcs for debugging coroutines? I have a bug in my code, and the IntelliJ debugger's stacktrace is completely useless.
c
Is there anything more to do than
DebugProbes.install()
? That doesn't seem to do anything.
c
Thanks, I'll read that
-ea
seems to have recovered the function just up where I am in the stacktrace. I guess a stacktrace of size 1 is better than no stacktrace at all, but it's far from great 😕
k
yeah..coroutine debugging isn't fun. I assume you named the coroutine? The name shows up in the stacktrace.
c
I didn't name the coroutine, but the problem isn't a race condition or anything complicated, I just wanted to see the value of a variable at a particular point in the program.
Thing is, that point is inside a lambda parameter of an
inline
function called in a
suspend
function, so bad luck I guess 😅
k
that might be a bug or missing feature in the coroutine debugging support so if you can create a repro, it'd be worth reporting it...
c
This particular project is open source, but it's far from being a minimal example 😕
r
the coroutines debugger helps alot
r