anybody having trouble setting breakpoints in susp...
# coroutines
k
anybody having trouble setting breakpoints in suspend functions?
g
it's a known issue that it won't stop in channel's
consumeEach
, if that's your case
k
no, i just seem to only be able to hit a breakpoint once
it's in a suspending function
after the first time I have to break above it and force step my way into the function
g
If you're able to put up a small reproducable example I'd suggest to open an issue. Mine is here: https://youtrack.jetbrains.net/issue/KT-29426
d
My Kotlin breakpoints are not being hit in general, I have not yet determined why. fortunately I am pretty good with a log statement her or there. It's kinda of an interesting constraint.
g
yeah I've seen both of these things, its pretty frustraiting. I feel like an undergraduate again debugging with
println
statements. also find myself writing a lot of static non-suspend functions and putting a breakpoint there. Also build/rebuild sometimes gettings my breakpoints working again. Its very disconcerting.
k
indeed....
d
I have always believed the better you are with a debugger the worse the code you are writing is. So far I have only needed the debugger when working with work code and not my own personal projects.
k
cool story eric, thanks for the on topic interjection
👍 1
d
IKR! Thanks for the sarcasm, it goes well with my morning coffee! lol But I did not mean that as a jab to you...try not to be so sensitive it's not flattering.
k
@dewildte lol, sorry about that. was in a mood last night.
d
@kevinherron I appreciate the apology, it's very big of you! No hard feelings.